A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: controlling the main timeline from within a movie clip

  1. #1
    Junior Member
    Join Date
    Aug 2000
    Posts
    4
    Hey folks

    I think I have a fairly simple problem.

    I have a movie clip placed on the main timeline with a button inside of it. All I want to do is assign an action to the button that tells the main timeline to move on to the next scene. However I am obviously messing something up because the best I can do is tell the main timeline to go to a specific frame within the first scene using

    on (release) {
    _root.gotoAndPlay(50);
    }



    but can't get it to go to the next scene using

    on (release) {
    _root.gotoAndPlay("Scene 2", 1);
    }


    Any ideas peeps? Any help much appreciated

  2. #2
    Senior Member
    Join Date
    Sep 2000
    Posts
    910
    Hi benengel...put a framelabel on frame1 of Scene2...then on your button...

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

    ...of course replace "frameLabel" with the label you put on the frame...no need to call the Scene name just the frameLabel...

    Hope this helps...

    -pigghost-

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