A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: controling scene from movie clip

  1. #1
    Junior Member
    Join Date
    Jan 2001
    Posts
    18
    Hi there!
    I have a rotating banner in my movie with buttons inside of it, the buttons are supposed to link to a frame label "navXX" within a the scene "Balmoral" however this does not work. would anyone know what is going on?

    This is the action script that i am using
    on (press) {
    gotoAndStop ("balmoral", "nav00");
    }

  2. #2
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    To target the main timeline from a movie clip us this code:

    Code:
     
     on (release) {
       _root.gotoAndPlay("framelabel");
     }

    To target a movieclip on the main timeline from a moveclip use this code:

    Code:
     
     on (release) {
       _root.yourMovieClip.gotoAndPlay("framelabel");
     }
    yourMovieClip is the instance name of the mc you are targeting.

    I also use framelabels instead of ("Scene2", "1")

  3. #3
    Junior Member
    Join Date
    Jan 2001
    Posts
    18
    thankyou so much, you have saved me so much time

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