A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Linking buttons (in a MC) to a scene

  1. #1
    Junior Member
    Join Date
    Jun 2005
    Posts
    3

    Linking buttons (in a MC) to a scene

    I am having trouble linking a button to go to another scene. I know how to do this usually, but I have a drop-down menu so the button is inside a movie clip. I can get the button to effect the surrent scene's timeline, by using the _root command but can't get it to go to another scene. I've tried putting the code on the button and on the timeline and nothing is working. Is there anything I can do short of moving everything around. Thanks

  2. #2
    Senior Member hum's Avatar
    Join Date
    Sep 2003
    Location
    CloudCuckooland
    Posts
    1,714
    Is the scene that you want to get to labelled on its first frame....(example..."scene2")
    then on button...
    code:
    on (press) {
    _root.gotoAndPlay("scene2");
    }


  3. #3
    Junior Member
    Join Date
    Jun 2005
    Posts
    3
    Thanks that did it for me.

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