-
I have an MC with 10 buttons, each button sends the main timeline to different frames. These frames each load a new movie into level 1. How do I send the main timeline (level 0) back to frame 1 when the movie unloads? What would be the most effecient way? I've tried a couple of ways and didn't succeed. Sorry, I am an Action Script newbie here, so explain well.
-
Originally posted by Bill
I have an MC with 10 buttons, each button sends the main timeline to different frames. These frames each load a new movie into level 1. How do I send the main timeline (level 0) back to frame 1 when the movie unloads? What would be the most effecient way? .
in the last frame of the movie in level 1, use.
_level0.gotoAndStop(1);
since you're targetting level 0, you just simply have
a gotoAndWhatever...
should work.
//d
-
one more thought
What about unloading the movie in level1? will this do it or do i need the unload move command in there as well? where would it go, before or after that line?
-
No wait
I got it, thanks very much!
-
no problem. btw, imho, instead of unloading clips, you might
consider hiding them by a)toggling the visibility when
not in use through setProperty, or b) making a frame
on the loaded clip that stops at blank space that you
can target when the clip isn't in use. if the swf gets
cached, there's usually (in more instances than not) no
reason to unload it.
glad i could help.
/d/
-
really?
so, if you're not unloading, what happens when the button is pressed that loads that movie? will it automatically play the loaded movie or try to load it again into the level it's already in?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|