Use a stop() action only once

Can anyone tell me if it is possible to use a stop() action on the first frame of the timeline only once and then have it ignored until the movie is reloaded?

I have a simple test movie where three colored screens scroll across the stage until the required color is reached. but I want to ignore the stop() action to be skipped whenever the timeline loops back to the begining.

I only want the first frames stop() action to be used when the movie is initially loaded.

I have little experience with Flash so please treat this as a 'Newbie" question.
Who is Participating?
crooksy88Connect With a Mentor Commented:
The simplest option is to add this to the last frame


So you don't actually revisit the first frame when the movie loops.

You can alternatively use a variable and an if statement... so on frame 1

//if count does not exist, stop
if (!count) {

then on frame 2

var count:Number  = 1;
SaigonJeffAuthor Commented:
Thank you
I'm a little embarrassed that I didn't see the simplicity of your first suggestion myself.

Works like a charm !
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.