[Help] Button that closes or unloads the SWF itself and charge another.

Hello! Could someone help me please?

Maybe my question seems little obvious to you, I ask patience ^ ^

I'll summarize as briefly as possible .. Imagine a presentation, interactive animation and full, with many ways or different possibilities...

The method I use is to divide it into many different rulers, otherwise it would be ridiculously heavy...

But that's the problem: when I want to load another SWF, he eventually overwrite the original and will become more slow and overloaded, because it consumes too much memory and frame rate decreases each new SWF loading...

I wonder if there is a way to unload the SWF itself by button and move on to the next...

Open
LER foneticamente

If you have a single swf file main who must simply acts as a container that loads of the FSV of presentation, you can use the Loader class to load the presentation files, and it includes methods to unload the files loaded as well.  Find the class Loader in the help documentation if you need more information.

Tags: Adobe Animate

Similar Questions

  • Unload the SWF using SWFLoader

    Hello

    I have a main app where I use a SWFLoader for loading a second application.

    In the second application, I want to put a (Close) button and when I click it I want to download this application.

    Is it possible to do this?

    I know that I can unload a swf file using the SWFLoader unloadAndStop method, but how do I access it the loaded application?

    I think a different approach would be adding eventlisteners to the loaded swf but I do not know how.

    Can someone help me?

    Thanks in advance,

    Alberto

    Hello

    @Alberto

    I think a different approach would be adding eventlisteners to swf loaded but I don't know how to do this.

    I think you can use the event type to custom or built-in to send information to the hosting applications and SWFLoader * has * integrated dedicated routine to the context loaded unloading - which includes the removal of event listeners added to swf-types on content charge (Yes, there is a way in the kit Flex SDK to access applications above, but most often that is not advisable to access the methods and properties of the parent that it binds tightly) content together).

    For your initial claim could start listening to the custom events when the load completes and removes loading app like this:

    http://ns.Adobe.com/MXML/2009.

    xmlns:s = "library://ns.adobe.com/flex/spark".

    xmlns:MX = "library://ns.adobe.com/flex/mx" >

    protected function chidLoadedHandler(event:Event):void

    {

    swfLoader.content.addEventListener (Event.CLOSE, unloadChildHandler);

    };

    protected function unloadChildHandler(event:Event):void

    {

    swfLoader.content.removeEventListener (Event.CLOSE, unloadChildHandler);

    swfLoader.unloadAndStop (true);

    }

    ]]>

    <>

    Width = "100%" height = "100%".

    source = "ChildApplication.swf"

    Complete = "chidLoadedHandler (Event)" "

    ID = "swfLoader" / >

    While the demand of your children simply:

    http://ns.Adobe.com/MXML/2009.

    xmlns:s = "library://ns.adobe.com/flex/spark".

    xmlns:MX = "library://ns.adobe.com/flex/mx" >

    protected function unloadMeHandler(event:MouseEvent):void

    {

    We will ship event 'CLOSE' - this could be the type of custom event

    but I think it's just enoguht heres

    var closeEvent:Event = new Event (Event.CLOSE);

    root's highest - if it's 'content' more high display object so

    this.root.dispatchEvent (closeEvent);

    }

    ]]>

    Don't know if it's more evidence of ball or recommended solution but could be the starting point,

    Kind regards

    Peter

  • Load and unload the swf file

    I am currently using AS2.

    I create a button instance named 'myBtn' and I want it to load the external swf "test2.swf" call all to unload the current swf file named "test1.swf" when you press on / release.

    that fact is I put the following code under mybtn:

    We (Press)

    {

    unloadMovie ("test1.swf");

    loadMovie ("test2.swf", 1);

    }

    the result was that the "test2.swf" was loaded successfully, but the "test1.swf" fail to unload.

    Any help is welcome

    AS2... Scope is your problem. When you are inside the function for delivery you tell the button you used to unload test1.swf of inside of this button (which it is not located in).

    You are probably using the root timeline, so I'll take a bet that it works:

    (press)

    {

    _root.loadMovie ("test2.swf");

    }

    If you want to follow the progress of loading between them, it is a bit more complex.

  • How to load external swf file and unload the swf file parent?

    I have a question. Let's say I have file1.swf, file2.swf and file3.swf, how can I link this 3 files together.

    Let's assume that file1.swf is the main content file, but as I load file2.swf, I want the file1.swf get replaced by file2.swf. How could unload file1.swf at that time, so that my file2.swf will become the main content file?

    and even once, when my current post file2.swf and I want it get replaced by file3.swf tinkle of a button. so that i can unload the file2.swf and let them file3.swf become the main content file...
    Anyone have ideas on this?
    Thank you..

    If you're publishing to fp 10 + use:

    var loader: Loader = new Loader();

    var urlR:URLRequest = new URLRequest();

    addChild (loader);

    Btn1.addEventListener (MouseEvent.Click, f);

    btn2.addEventListener (MouseEvent.Click, f);

    function f(e:Event):void {}

    {if (Loader.Content)}

    loader.unloadAndStop ();

    }

    {if(e.currentTarget==btn1)}

    urlR.url = "file2.swf";

    } else {}

    urlR.url = "file3.swf";

    }

    Loader.Load (urlR);

    }

    p.s. Please check the useful/correct, if there is.

  • Unload the SWF file

    Hello

    I am developing a portal application.  I load all the swf files in a configuration of trusted sandbox.

    When I unload the swf file as follows (note automatically load the value true):

    swfLoader.source = null;

    swfLoader.validateNow ();

    But when I run the Profiler on that I noticed that the application loaded the swf file is never garbage collected (i.e. There is an instance for each time I load the swf file).

    When I look at what has references to the application, I get the following:

    profiler.jpg

    Is there a standard method to remove the reference to the application so that it is unloaded.  Currently, my request is vanilla and there is nothing in the mxml.

    I doubt that the SystemManager is the issue.  I would look at the amount and names

    each class in the snapshots to see what the difference is.  I think so

    someone wrote recently having to unplug the RO in order to allow

    unloading.

  • I want to manage my payment details as the credit card in detail, but there is no button 'Edit payment details' in the tab 'Plans and products", can I do?

    I want to manage my payment details as the credit card in detail, but there is no button 'Edit payment details' in the tab 'Plans and products", can I do?

    A few changes/Verify account https://forums.adobe.com/thread/1465499 links that can help

    -Credit card https://helpx.adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting-cr creative - cloud.html

  • I bought the Photoshop 19.99 plan for a month so that I can check the new Illustrator and other new programs CC and see if I liked the concept... Now that I checked out, I decided to upgrade to the full cloud...  There is a prom one year

    I bought the Photoshop 19.99 plan for a month so that I can check the new Illustrator and other new programs CC and see if I liked the concept... Now that I checked out, I decided to upgrade to the full cloud...  There is a promotion for one year to 29.99 per month for users of cs3, but when I try to upgrade my contract he wants to load the full 49.99... is there someone I can call?

    Hello Mary,.

    There is a telephone support | Orders, returns and exchanges, you can use > http://helpx.adobe.com/x-productkb/global/phone-support-orders.html.

    If necessary and for further questions click on http://helpx.adobe.com/contact.html and 'open' Please use the cat, I for my part had the best experiences. I quote Adobe Preran employee: the chat button is enabled as soon as there is an available agent to help.

    Hans-Günter

  • When you use the media player, it is possible to take a song that's already torn in our library and announced another song or part of the same song at the end? kinda like a mix.

    When you use the media player, it is possible to take a song that's already torn in our library and announced another song or part of the same song at the end? kinda like a mix.

    Windows Media Player is not a Publisher.

    You can use Windows Movie Maker to split
    and combine audio files, but it works better
    If they are in the. WMA format.

    Also the free Audacity software may be worth a try:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Audacity

    http://Audacity.sourceforge.NET/

    How to split a long recording into multiple files or CD tracks?
    http://Audacity.sourceforge.NET/Help/FAQ?s=files&i=split

    How to combine two files into one longer file?
    http://Audacity.sourceforge.NET/Help/FAQ?s=editing&i=join

    How to mix songs with Audacity
    http://www.ehow.com/how_5061510_mix-songs-audacity.html

  • I'm looking for a software that will speed up the startup time and when I use etc.

    I'm looking for a software that will speed up the startup time and when I use the computer for a while, it is slow going on the Web site? do I need a registry cleaner? Please notify. I have two computers with xp and vista.

    The only thing that's really going to "speed up" your computer is a faster processor, more ram and a faster internet connection.  Everything else is really a waste of money (IMHO)

  • When I open a program that takes a few seconds to load and open another program while I'm waiting, it will automatically put the first window on top

    When I open a program that takes a few seconds to load and open another program while I'm waiting, it will automatically put the first window on top when it has finished loading.  How do I not do?

    Hello

    Unfortunately, it is not possible to change that outside of the modification of the order in which the programs open.

    If you have feedback or suggestions, you can express their opinion on this at:

    http://connect.Microsoft.com

    It will be useful.

  • Try to get rid of an audio file that is unwanted in the media library and half the music library disappears

    I'm trying to get rid of an audio file that is unwanted in the media library and half the music library disappears and spend a moment difficult to come back. Sometimes the songs I want to keep are followed and even triple, the same file read 3 times. I try to correct the error to remove extras and half the disappears from the list again... That the ho-ha happens?...

    Hello

    Thanks for posting the request in the Microsoft community forums!
    I understand that the songs on windows media player reproduces. To get resolution on this issue, provide us information.

    1. you receive an error message on the computer?
    2. don't you make changes on the computer before the show?

    Method 1:

    Run the troubleshooter in the Windows Media Player library

    http://Windows.Microsoft.com/en-us/Windows7/open-the-Windows-Media-Player-library-Troubleshooter

    Method 2:
    It could be that the Windows media Player library is corrupted. I suggest you follow the steps mentioned below.

    Step 1:

    a. exit Windows Media Player.

    b. Click Start, type %LOCALAPPDATA%\Microsoft\Media Player and then click OK.

    c. Select all files in the folder and then click on Delete on the file menu.

    Note: You don't have to remove the folders that are in this folder.

    d. restart Windows Media Player.

    Note: Windows Media Player automatically rebuilds the database.

    e. launch Windows Media Player and check.

    Step 2:

    If step 1 does not resolve the problem, disable the Windows Media Player database cache files. To do this, follow these steps:

    a. exit Windows Media Player.

    b. Click Start, type % LOCALAPPDATA%\Microsoft and then click OK.

    c. Select the Media Player folder, and then click on Delete on the file menu.

    d. restart Windows Media Player.

    Note: Windows Media Player automatically rebuilds the database.

    If you have any other questions about windows, write to us, at any time.

  • If you install and activate your Lightroom on a single computer, and dies from this computer, is it possible that you can use the same serial number on another computer?

    If you install and activate your Lightroom on a single computer, and dies from this computer, is it possible that you can use the same serial number on another computer?

    With most of their applications, you can disable it on a single computer, and then turn on another.  I'm not 100% sure of Lightroom, however.

  • I have the iphone 6, since yesterday it does not open a lot of apps, they look just as they open you and then it comes out of the application itself, and I need information in my apps so I can just remove them and reinstall

    I have the iphone 6, since yesterday it does not open a lot of apps, they look just as they open you and then it comes out of the application itself, and I need information in my apps so I can just remove them and reinstall

    Have what troubleshooting you done?  Surely you have tried something before posting here, Yes?

    Hold power and home until is buttons restarts.

  • MAC OS Yosemite - CS6 - earlier, I did something to where when I open a file in photoshop, is no longer a single window, now it is two storage ones. one for the program itself, and another for the actual file how to return it where it's all

    -At the time, I did something to where when I open a file in photoshop, is no longer a single window, now it is two storage ones. one for the program itself, and another for the actual file how to return it where it's a window without having to be full screen mode? I managed to go a few times like this, but right now it's really annoying me. Help!

    Screen Shot 2015-01-27 at 4.15.04 PM.png

    Just drag the small window up just under the toolbar, you will see the area highlighted, and when you drop the file should anchor.

  • How can I delete a button that appears just to the right of the help link.

    In the blue field just to the right of the gray box that has the file, Edit, View, history, Favorites, tools, and help links is a blue button with a circular logo white. When you click on it it will link to a full site which seems being written East. How can I remove this button? I have a screen shot that shows the key mystery but don't see a way to reach this question

    How to show or hide various toolbars?

    Most toolbars can be shown or hidden according to your needs. To show or hide a toolbar, click an empty section of the band to tabs and check or uncheck it from the context menu.

       Menu Bar: This toolbar at the top of the Firefox window contains the browser menus (File, Edit, Help, etc.). On Windows Vista and 7, the Menu Bar is hidden by default, and its features are contained in the Firefox button. If the Menu Bar is hidden, you can temporarily show it by pressing the Alt key.
    
       Tab Strip: This is where your tabs are displayed. You can't hide it.
       Navigation Toolbar: This toolbar contains your web site navigation buttons, the Location Bar, the Search Bar, the Home button and the Bookmarks button.
       Bookmarks Toolbar: This toolbar contains your Bookmarks Toolbar Folder bookmarks. For more information, see Bookmarks Toolbar - Display your favorite websites at the top of the Firefox window. On new installations of Firefox, the Bookmarks Toolbar is hidden by default.
       Add-on Bar: This toolbar at the bottom of the Firefox window contains buttons associated with your extensions (if they are made available by the add-on developer). See The Add-on Bar gives you quick access to add-on features for more information.
    

    Toolbars - win1
    How to customize or rearrange items on the toolbar?

       Right-click an empty section of the Tab Strip and select Customize.... The Customize Toolbar window opens.
       Change the toolbar items as necessary. For an explanation of what each item does, see Customize navigation buttons like back, home, bookmarks and reload.
           To add an item, drag it from the Customize Toolbar window onto the toolbar where you want it to appear.
           To remove an item, drag it to the Customize Toolbar window.
           To rearrange an item, drag it to the spot where you want it.
       When finished, click Done.
    

    Toolbars - win2

    Try it: experiment with different arrangements. You can always restore the default toolbar settings by clicking on restore the default value defined in the window to customize the toolbar.
    Icon appearance options

    There are additional options to change the appearance of your icons in toolbar at the bottom of the window to customize the toolbar:

       Show: From the Show dropdown menu, you can choose what to display in the toolbars: icons, text, or icons and text together. By default, Firefox shows icons only.
       Use Small Icons: Check this option to make the toolbar smaller.
    

    How can I add additional toolbars?

       Right-click an empty section of the Tab Strip and select Customize.... The Customize Toolbar window opens.
       At the bottom of the Customize Toolbar window, click Add New Toolbar. The New Toolbar window opens.
       In the New Toolbar window, enter a name for your toolbar and click OK.
       Add items to the toolbar as described above. If you don't add any, Firefox won't create your toolbar.
       When you're finished adding items, click Done.
    

    Your new toolbar appears under the Navigation bar.

    Try it: make a new toolbar. You can always remove additional toolbars by clicking on restore default set in the window to customize the toolbar.
    I ran out of toolbars, toolbars or unwanted toolbars that reset itself

Maybe you are looking for