A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: _Root buttons targeting MC frame labels

  1. #1
    Learn more, know less.
    Join Date
    Jul 2004
    Posts
    169

    _Root buttons targeting MC frame labels

    I have a basic menu on the _root level. I dynamically load MC's into an empty MC on the stage, and these loaded MC's have frame labels.

    I would like to use the gotoAndPlay function from the _root menu to move the play head within the loaded MC's, but it won't work properly.

    This seems so simple, but yet I can't make it happen...suggestions?

  2. #2
    Living Proof mave_the_rave's Avatar
    Join Date
    May 2002
    Location
    East Dulwich
    Posts
    1,006
    In you your movieclip create a frame label on the frame you want to got to.

    then use:-

    code:

    on(release){
    _instancenameofmovie.GotoAndPlay("yourframe label");
    }



    having said that you may need to use:-

    code:

    on(release){
    _instancenameofEmptyMC.instancenameofatatchedMC.Go toAndPlay("yourframe label");
    }

    Last edited by mave_the_rave; 01-09-2005 at 04:11 PM.
    If someone tells you it can't be done,
    it's probally because they don't know how.

  3. #3
    Learn more, know less.
    Join Date
    Jul 2004
    Posts
    169
    Thanks. It actually turned out to another piece of code that was stopping the whole process; I had this code right the whole time.

    on(FlashKitPostReply) {
    Dumb = me;
    }
    Last edited by JoelTHE; 01-09-2005 at 04:41 PM.

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