I want my movie to keep running

Hi, I have an interface, with a stop condition, but the background changes colour, and i want this to keep happening, but when i put stop conidtions in, it will also stop the background from changing colours, does anyone know a way that the background image would continue to loop while the rest of the interface stays the same?

If you have the code that changes the background in a function, then you can do a

setInterval(functionName, amount of delay)

That will still call the function every “amount of delay” milliseconds, even if the movie is stopped, I believe.

well, you could just make the background a movie clip. they run always. wether the movie is stopped or not.

*Originally posted by Coppertop *
**well, you could just make the background a movie clip. they run always. wether the movie is stopped or not. **

Yes, just press CTRL+F8 to create a new symbol, and pick movie clip. Then paste the frame of animation of the background into that.

Make sure you name the movie clip something you will remember.

Now press F11 and drag the new movie clip onto the stage and insert it wherever you want at whatever stage.

When you have your stop action at the last frame, makle sure the layer that contains the movie clip has a keyframe inserted at the last point.

So if on layer one the movie has a stop function at 230th frame, make sure on level 2 (wherever the movie clip is) has a keyframe when it starts, and a keyframe on frame 230.

This will make it loop forever C:-)

There may be other ways, but this works for me and i tried to make it sound pretty easy - which it is :slight_smile:

Enjoy