A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: scene problem

Hybrid View

  1. #1

    scene problem

    In my Movie i put an on(release) action on a button to gotoAndPlay frame 1 of scene 2.
    However when I test it, it always plays frame 1 of scene 1.

    Ive tried changing the action to play frame 1 of scene 3 in stead, but it always insists on playing the current scene. The actions in other other scenes work fine so i dont understand.

    what can i do?

    LEAO
    Last edited by Leao; 07-14-2004 at 05:16 PM.

  2. #2
    Registered User Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    When using scenes, use frame labels and target the label. So for scene 2 frame 1, add a framelabel there called scn2fr1, then on the button:

    on(release){
    _root.gotoAndPlay("scn2fr1");
    }

  3. #3
    cheers that seems to do the trick. I dont appear to have labels in my version of Flash, but I wrote "Scene 3" and it worked.

  4. #4
    Registered User Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    No, use a label. To make one, put a keyframe in the frame of the scene you want it, then in the Properties panel, look for a box on the left with greyed out text that says <Frame Label> click in there and type in the label name, then hit enter to set it.

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