1 Reply Latest reply on Nov 15, 2017 8:25 PM by mark@headTrix

    How to unload and free memory taken by swf files in animate as3


      I'm using Adobe Animate CC with AS3. I'm having the following problem with my project (which has a lot of animation in it and hence is quite heavy)


      There are 4 swf files which are in the same folder. The first one is like a blank container which loads the second swf automatically upon run. The second one has got a few buttons in it along with some animation. When the animation gets over, there is a button that loads the third swf. Now this 3rd swf has got a next button to load the next swf. The 4th swf has got back button to load the previous swf. The 3rd swf has in turn a home button that loads the 2nd swf.

      Now, the problem is that when the next button is pressed, say on 2nd swf, not only should the 3rd swf open but the 2nd swf should get unloaded and the memory occupied by it should be freed. And same with the 3rd and the 4th swf.

      However, the unloaded swf should open again when the back button is clicked.

      If anyone could provide a link to or code for back button and load-unload, that'd be greatly appreciated.