A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: playing main timeline from within movie clip

  1. #1
    Junior Member
    Join Date
    Jun 2001
    Posts
    3
    i have a rather easy question... i have a button within a movie clip that i want to play the main timeline. _root.gotoandplay() doesn't seem to be working. how can i play the movie on level0 from a button on level2?

  2. #2
    Senior Member
    Join Date
    Feb 2001
    Posts
    185
    Try adding a frame label in on your root timeline

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

    this worked for me.


  3. #3
    Hack
    Join Date
    Mar 2000
    Location
    Madison, WI
    Posts
    1,753
    _root takes you to the root layer of whatever level you're on. Since you're on level 2, it takes you to the topmost layer of level 2. To get to level 0,

    _level0.gotoAndPlay(x);

  4. #4
    Junior Member
    Join Date
    Jun 2001
    Posts
    3

    thanks

    hey thanks, the _level0.gotoandplay() thing worked great. simple answer for a simple question i guess.

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