A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [CS3] dead simple question

  1. #1
    Member
    Join Date
    Sep 2005
    Posts
    78

    [CS3] dead simple question

    hi

    im using this code for my buttons below, but i want to have the below code on the main timeline and make the buttons control the timeline within another MC (called 'content'). do i just change the gotoAndPlay("2"); to gotoAndPlay(_content"2");???? i dont think this 100% right?

    please help. thanks.

    stop();
    buttonMC.onRelease = function() {
    gotoAndPlay("2");
    }

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    if you target frame 2, don't use quotes:
    target a frame:
    PHP Code:
    gotoAndPlay(2
    target a label:
    PHP Code:
    gotoAndPlay("myLabel"
    if you want to control another instance, use the path+instance name before the dot. For example:
    PHP Code:
    this._parent.content.gotoAndPlay(2); 
    gparis

  3. #3
    Member
    Join Date
    Sep 2005
    Posts
    78
    thanks for the fast reply

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