A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: comands from button in attached MC

  1. #1
    Member
    Join Date
    Jan 2003
    Location
    georgia
    Posts
    83

    comands from button in attached MC

    Hi,
    I have trouble, I can't make command to move to scene-B, frame 5, from button wich is placed in attached MC on main timeline:
    on (release) {
    gotoAndPlay("scene-B", 5);
    }
    Can anyone help me? what script I have to use?
    Thanks in advance

    g e o r g e
    georgmorb@ip.osgf.ge

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    You have to make a framelabel on the frame where you want to go and reference that. Like....

    on (release) {
    _root.gotoAndPlay("myFrameLabel);
    }

    ( _root means the main timeline ). You can use _parent also ( it means, one timeline up ).

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

  3. #3
    Member
    Join Date
    Nov 2003
    Location
    Netherlands
    Posts
    91
    Prolly need a tellTarget on scene-B with that... but I'm off to sleep now.
    Ha, ha! He is one of the Legion Lost;
    He was never meant to win;

  4. #4
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    tell target is old Flash 4 code and is not needed any more as you can specify timelines more easy with the dot notation.

    And if you would use it anyway its replaced by "with" ( looks the same but instead of writing tell traget you write with instead ).

    -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