A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: scene 1 play one time and play scene 2

  1. #1
    Member
    Join Date
    Jan 2002
    Posts
    75

    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

  2. #2
    Senior Member Cass101's Avatar
    Join Date
    Dec 2004
    Posts
    131
    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

  3. #3
    Member
    Join Date
    Jan 2002
    Posts
    75

    thanks

    Thanks man! I knew it was something simple I was missing.

  4. #4
    did0bib chero's Avatar
    Join Date
    Jun 2004
    Location
    in a bar, under the sea
    Posts
    751
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center