• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 248
  • Last Modified:

unloadMovie() when you have multiple external swfs -- flash 5, pls.

Okay, here's my rather simple question, in a nutshell.

I'm building a simple menu to load several image galleries.  Click a button, and the image gallery (and external SWF) loads into the main movie.  So far, so good.

Now, I don't want to bog down the system by having lots and lots of these loaded, so it makes sense to use unloadMovie to get rid of the previous movie.

This script is easy enough:


on (press) {
    unloadMovie ("movie1.swf");
    loadMovieNum ("movie2.swf", movieholder);
}

However, people will certainly jump from gallery to gallery, not in sequence.

How can I get the unloadMovie command to unload ANY previous movie before loading the next movie?

Or, should I even worry all that much?  I'm worried about the processor bogging down if the user winds up with 3 or 4 megs of stuff. If that is NOT a factor, well, let me know.

Thanks!


0
geod100
Asked:
geod100
1 Solution
 
vickerleungCommented:
geod100,

Actually when you use the loadMovie or loadMovieNum,
given a particular movie attachment movieclip
It will automatically unload the previous one before loading another one,
it is a replacement scheme.

Say for an example
You have a mc on the stage so called, movie_space

And you do a loadMovie process
loadMovie ("movie1", _root.movie_space);

And when you do another loadMovie, it will replace the existing one
loadMovie ("movie2", _root.movie_space);

Vicker
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now