-
scene 1 play one time and play scene 2
I'm creating a flash project and have two differant scenes. Scene 1 is the intro which I only want to play ONE time. Scene 2 plays with interactivity. Right now the swf file plays but once the animation in scene 2 ends it goes back and plays scene 1. I would like scene 1 to play only one time and scene 2 loop. Can someone help please?
Thanks!!
Jeff
ImCoolToo@aol.com
-
Senior Member
put a keyframe in at the end of scene 2, or where you want it to loop from, and add the following code to that keyframe:
Code:
gotoAndPlay("Scene2", 1);
where "Scene2" is the name of your scene, and 1 is the frame number of that scene you wish to go to.
Basically, you are telling the playhead to move to the first frame in scene 2 when it reaches that key frame with the code in it.
Hope this helps
-
thanks
Thanks man! I knew it was something simple I was missing.
-
did0bib
Don't use scene names, use frame names - make the 'labels' layer, and select the first frame of scene 2 - name it in the properties pane, and then use that code on the last frame like this:
Code:
gotoAndPlay("myFrameName");
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
|