• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

Guest
Nov 14, 2017 Nov 14, 2017

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.

Views

332

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 15, 2017 Nov 15, 2017

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

Votes

Translate

Translate
Community Expert ,
Nov 15, 2017 Nov 15, 2017

Copy link to clipboard

Copied

LATEST

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

Consulting | Design | Motion | Training>headTrix, Inc. | Adobe Certified Training & Consulting<br />Consulting | Design | Development | Training

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines