Groups | Blog | Home
all groups > flash actionscript > january 2005 >

flash actionscript : Unloading Movies Upon Moving Frames


davidkraliknam
1/5/2005 9:15:28 PM
I have a SWF file that loads movies externally,

its a timeline where each decade is a frame. Eeach frame has 10 swf files
that users can load if they press the right button.

The problem I am having is that the same movie is kept on the screen even
after I move to the next decade.

take a look at the file here if you want: http://www.nam.org/hidden/timeline

If I select a year (say, 1897) from the the 1895-1900 decade, and then press
the arrow to move to another decade (another frame), the 1897 year still
appears, what I want to happen is if I select a new frame/decade the movie
dissapears...

the fla file is here: http://www.nam.org/hidden/timeline/timeline.fla

any advice?


abeall
1/5/2005 10:18:57 PM
Did you try the
myMovieClip.unloadMovie()
davidkraliknam
1/6/2005 1:21:25 AM
No, I did not, but that solved the problem! Thanks so much!

abeall
1/6/2005 2:48:46 AM
Glad it was that easy.
Fatmat
5/16/2005 12:00:00 AM
Is this posssible then:

before.onRelease = function () {
_level0.myMCL.loadClip("beforeafter/beforeafter.swf", 3);
_level0.myMCL.unloadMovie("background.swf", 2);
};

The background.swf does not unload form my main movie.
AddThis Social Bookmark Button