A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: on (release) gotoAndplay (Scene2,1); ???? applying this to a button..

  1. #1
    Senior Member
    Join Date
    Aug 2004

    on (release) gotoAndplay (Scene2,1); ???? applying this to a button..

    im trying to add actionscript to a button to get it to go to the next scene...

    my code is not working...obviusly somethings wrong

    on(release) gotoAndPlay (Scene2,1);


  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Stockholm, Sweden
    Use framelabels instead.

    Give the frame you want to go to a label name and reference that.

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

    It is very important to target the right timeline too. If your button is inside a movieclip you should add _root to the path to target the main timeline instead of the movieclips timelime.

    -Pelle Piano
    // Image Gallery
    // Photo Blog

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