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

flash actionscript : urgent problem: Unloading Movie using unloadmovie


ryan from KEMI
4/7/2005 9:05:54 PM
I need some help quick! I'm working on a .fla file in MX2004 Pro - I have
multiple layers in this fla file and have lots of "movies within movies" ...
Here's what I can't figure out:

On keyframe number 1 (called Testimonials), there's a link to keyframe 10
(called Overbrook). When the "Overbrook" button is clicked to go from
Testimonials (1) to Overbrook (10), a separate swf file (an .avi video) loads
using the following script:
loadMovie("http://oldtest.mysite.com/04AnnualReport/overbrook.swf", 1);

***I need two things here:
1. I need to figure out how / where to add "buttons" to the movie so viewers
can start & stop the clip.
2. I need the user to be able to go back to Keyframe 1 (testimonials) and I
want the movie to stop playing and go away (unload?).

Can someone puh-leeze help me?! Thanks!!!
spider_stan
4/7/2005 10:28:20 PM
1. You should add the buttons to start and stop the clip within the
overbrook.swf (or rather fla) file.

2. since it looks like you are simply loading the movie into a layer rather
than a target MovieClip use
loadMovieNum("http://oldtest.mysite.com/04AnnualReport/overbrook.swf", 1);

instead then you can remove it with
unloadMovieNum(1);[\b]


AddThis Social Bookmark Button