Copy link to clipboard
Copied
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.
hi,
try loading all of the movies into the same SWF that you mentioned gets loaded in the beginning
loadMovie() replaces the target movie with the loaded movie so when you load a new movie it will replace(Hence unload) the one that it is replacing.
Hope that makes sense!
cheers!
mark
Copy link to clipboard
Copied
hi,
try loading all of the movies into the same SWF that you mentioned gets loaded in the beginning
loadMovie() replaces the target movie with the loaded movie so when you load a new movie it will replace(Hence unload) the one that it is replacing.
Hope that makes sense!
cheers!
mark