A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Unloading loaded swfs from memory

  1. #1
    Senior Member
    Join Date
    Nov 2005

    Unloading loaded swfs from memory

    I've been reading about the problems associated with Flash Player 9 not unloading Loader swfs from memory, and how this has been possibly addressed by the addition of Loader.unloadAndStop in Flash player 10. (http://www.gskinner.com/blog/archive...onal_info.html)

    Assuming the worst (given that this fix just attempts to mark the object for garbage collection), I was wondering does anybody know if the same swf is loaded twice does it use the copy in memory or load it again?

    Specifically, I have a project which loads a sequence of swfs. When it gets to the end of the sequence it loads them again from the beginning. The project is a billboard which gets reset only once a week so I can't risk running out of memory.

    Anybody know how this works?

  2. #2
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    press the picture...
    The garbage will eventually be emptied. As far as I know the movie is always newly loaded. A browser can cache.
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center