A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: <Jumping to a specific frame> "help pls"

  1. #1
    Junior Member
    Join Date
    Aug 2003
    Location
    malaysia
    Posts
    23

    <Jumping to a specific frame> "help pls"

    Good day Flash users!

    Does anyone knows how to jump to a specific Scene & Frame on Main timeline from inside a movie clip? Let's say I am in the "timer" movie clip timeline(and the movie is placed on the Main timeline), and I type in the following code:

    if(_root.TimeLeft == 0) {
    gotoAndPlay("Scene 1", 4);
    }

    I thought that the above code would go and play the 4th frame on Scene 1 (Main) but it didn't, can anyone please help me? Thanks a bunch!

  2. #2
    Living Proof mave_the_rave's Avatar
    Join Date
    May 2002
    Location
    East Dulwich
    Posts
    1,006
    Hi there.

    Create a frame lable in the frame you want to jump to.
    Then use code below

    _root.gotoAndPlay("yourframelable");
    If someone tells you it can't be done,
    it's probally because they don't know how.

  3. #3
    Junior Member
    Join Date
    Aug 2003
    Location
    malaysia
    Posts
    23
    Thanks mave_the_rave!

    I followed your instructions straightaway and it worked!
    Alright back to work...

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