A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: AS3 gotoAndPlay help

  1. #1
    Member
    Join Date
    Sep 2006
    Posts
    49

    AS3 gotoAndPlay help

    I've got an MC calle "films" and inside of it I'm animation a bar of images across the screen from frame 1 - frame 180. At frame 180 and need it go back to frame 90 and play. I named fram 90 "repeat" and added the following code to frame 180:

    stop();
    this.gotoAndPlay("repeat");

    But it doesn't goto 90 and play it goes back to 1 and plays.

    Can anyone help?

  2. #2
    Senior Member
    Join Date
    Dec 2010
    Posts
    121
    where did you put the code? On the main timeline or in the movie clip's timeline?

  3. #3
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    Try this:

    Actionscript Code:
    gotoAndPlay("repeat");

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