A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: movie loops with stop action

  1. #1
    Member
    Join Date
    Jan 2004
    Location
    South Carolina
    Posts
    42

    movie loops with stop action

    Can anyone tell me why this button isn't working properly? When a user places his mouse over the "Home" text the movie plays and then it's supposed to stop at the end and just wait for user input. It ignores the "stop" action I have at the end of the movie.

    Thanks,

    Tom
    Attached Files Attached Files

  2. #2
    Senior Member
    Join Date
    Mar 2001
    Location
    Breda, The Netherlands
    Posts
    522
    Hi tgarber,

    I've looked at your fla. You use on (rollOver), this statment stays true, that is, it will keep doing on gotoAndPlay(2); as long as the mouse is over the button.
    I think the best thing for you to do is place the animation in a movieclip and place that clip in the over state of the button. Delete the on rollOver and on rollOf code on the button.

    HTH, Danielle.

  3. #3
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Or make this a movie clip, and just keeping your on(release) action on the button (watch it you have in fact 2 buttons with different scripts!), use a hitTest on the movie clip as this example does...
    Last edited by oldnewbie; 12-02-2004 at 12:53 PM.

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