Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Site Design / October 2008



Tip: Looking for answers? Try searching our database.

go to frame

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
vzzzzzzzzzz - 21 Oct 2008 20:25 GMT
I have a movie loaded in level 1, which then loads a second movie in level 2.
My desire is that when you click a button on level 2, that movie unloads
itself and then goes to and stops at a particular frame on the level 1 movie. I
am unable to find a way to do this.
My basic attempt was to put this script in the button code:

on (release) {
           
            unloadMovie(2);
            gotoandStop(145);
}
Rob Dillon - 23 Oct 2008 00:38 GMT
When you loaded the .swf, you loaded it into a target movieClip. To unload that
same .swf, you'll need to reference the same target movieClip. So, if you want
to unload a movie from itself, you'll have to use something like:

unloadMovie(_parent.clipName);

If you want the root level movie to move its playback head, you can do that in
much the same way. You should do this first, because if you unload the movie,
it can't then tell the parent's parent to do something. The code might look
something like this:

on(release) {
      _parent._parent.gotoAndStop(145);
     unloadMovie(_parent.clipName);
}
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.