A Flash Developer Resource Site

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    16

    Unhappy AS2 problem with buttons

    Hi, a very n00b question but now I'm making a interactive animation.

    in the roo I have a frame with a movie clip with instance name of "pascal"... inside it has another animation that end with a stop in frame 37...

    outside again in the root in frame 17 I have another moviclip with an animation that stops in frame 17 and have a button, if pressed it should take you to "pascal" movieclip in frame 37...

    what i have right now in this button is

    on(release){
    _root.pascal.gotoAndPlay(37);
    }

    I Also tried with pascal.gotoAndPlay(37); and this._root.pascal.gotoAndPlay(37);

    but nothing seems to work.... any help would be much appreciated!..


    thanks!
    Last edited by miku00; 07-09-2012 at 04:36 PM.

  2. #2
    Senior Member Steven FN's Avatar
    Join Date
    Mar 2010
    Location
    CA, USA
    Posts
    274
    It seems that you need to go to frame 37 on the root timeline and then have the "pascal" clip play from there.

    so it should be something like this:
    Code:
    on(release){
        _root.gotoAndPlay(37);
        _root.pascal.play(); // If "pascal" has a stop action on first frame, else not needed
    }

  3. #3
    Junior Member
    Join Date
    Jun 2012
    Posts
    16
    Thanks Steven FN, sadly that code didn't work.... but I resolved with alphas.... since I could not remove the MC that I didn't wanted then I just covered it in alpha. But thank you anyways for the response

    =3

Tags for this Thread

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