A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Buttons inside of a movie clip

  1. #1
    Junior Member
    Join Date
    May 2005
    Posts
    18

    Buttons inside of a movie clip

    Hey I am wondering how , if I have a movie clip and inside of that movie clip I have another movie clip with buttons, do I get those buttons to go to a frame on the previous movie clip I have tried the .root GoToandPlay and specified the frame label but this doesnt seem to work. Let me try to be more clear

    main stage > movie clip1 > movie clip2 > buttons

    the > indicate that it is inside the previous thing.

    I want the buttons in movie clip2 to go to a specific frame on movie clip1. How do I achieve this?

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    _root means the main timeline. You should use _parent which means "one timeline up" .........

    _parent.gotoAndPlay("frameLabelName");

    .... or make a absolute path...

    _root.movieclip1.gotoAndPlay("frameLabelName");

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

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