[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


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

Posted on 2004-10-28
Medium Priority
Last Modified: 2008-03-10
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.


Question by:geod100
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
LVL 16

Accepted Solution

vickerleung earned 2000 total points
ID: 12440427

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);


Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to record live broadcast.

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question