A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Can someone help me, Totally forgot how to do this..

  1. #1
    Member
    Join Date
    Apr 2002
    Posts
    56
    I have done this before lots of times but for some reason i just can't remember how to do it. I want to play a frame on the main timeline from a moive clip when the button in the moive clip is pressed.

    I tried.

    on (press) {
    _root.gotoAndPlay(Main, 46);
    }

    But it wont work, it works if i just put in the frame number, execpt it plays the intro scence instead of the main scene. Any help would be appreciated.

    Thanks

  2. #2
    Senior Member
    Join Date
    Jun 2000
    Location
    NJ
    Posts
    440
    Sometimes Scene Gotoandplays are screwy.


    Try a frame label. on the first frame of the scene. that should work.

  3. #3
    Senior Member
    Join Date
    Apr 2002
    Posts
    2,849
    You might try putting a frame label on the first frame of your scene and try telling _root to go to that.

    I know everyone is gonna yell at me, but what I do for these is use a tell Target. If you use a tell Target and pick the scene from the drop down boxes, it works every time for me.

    I'm sure someone else will come along with the non-deprecated way to do it.

  4. #4
    Member
    Join Date
    Apr 2002
    Posts
    56
    Hey thanks alot guys, the frame label worked perfectly. I didn't know that the frame number way was screwy sometimes anyways thanks alot I really apreciate 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