-
Simple Movie Control Question - I Suck!
Hi All - I'll try to explain this but I appreciate anyones help very much - this question will show my lack of experience with Flash but I gotta learn someday!
So here's the deal...
I got 4 'movie' symbols each 135 frames
I got some background and border stuff on my main stage.
All I want to do is have in my main scene (Scene 1) have 4 frames (any 4 but I got 'em labeled and set about 10 frames apart for easy viewing) each with a movie symbol, so when one is done it nicely moves to the next without having to spread all 135 frmaes for each clip. I may want to overlap them so as one fades out the other fades in so they need to be independent and lastly I may need to massage each ones frame count so here's what I tried...
So, I got an action on Frame 1 to 'stop();' so that I can play my first movie symbol (movie_01) - this works fine.
BUT I want an action IN my movie symbol to tell the main stage to move on to movie 2 after its played my movie 1. So I thought - OK I'll just add an action on the last frame of movie_01 to goToAndPlay ("Scene 1", 10); thinking it will just go to frame 10 of the main stage where my second movie symbol sits.
Somehow not the case - I must be trying this the wrong way but it seems like such a simple thing.
Flash help says that I can't use gotoandplay from within a movie clip to control the root timeline... so how do I do this? Do I have to make separate scenes for each clip? seems clunky but I could...
I'm sure there is something better I just have almost NO knowledge of the program - just enough to do very linear animation/slideshows but I'm hoping one of y'alls gurus out there can lend a hend.
Thanks very much for any help!!! --bp
-
Watch your syntax... It's gotoAndPlay and not goToAndPlay... And I think you should even be using gotoAndStop rather than gotoAndPlay...
But your main problem is targeting a scene name. Never target a scene name again. Always target a labeled frame and add the targeted timeline to your path. Since you're targeting the main timeline it should be _root or _level0...
_level0.gotoAndStop("frame_label");
-
Awesome - it totally works - thanks!
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
|