Stopping a movie from looping AS3

Posted on 2010-01-06
Last Modified: 2013-11-11
I know a little about AS2, but want to start using AS3.  I have a very basic button, that has a label fade in when the mouse has been over the button for a second.  Nothing complicated, just a simple movie with two layers (1x Text message, 1x White box that fades to nothing).  

On AS2, I could simply put the Stop(); statement on the last frame of the movie.  However, on AS3 when I use the same approach it comes up with a compile error and the fade keeps looping - any ideas?

Question by:Andy Brown
    LVL 14

    Accepted Solution

    stop(); in as2 and as3 works the same way.

    Maybe you couldn't get it to work because you capitalised your stop();

    It should be stop();

    and not Stop();

    Author Closing Comment

    by:Andy Brown

    I forgot about it being case-sensitive.

    Thank you.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
    In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
    In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
    The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now