Controlling button actions depending on what is loaded?

Here is my situation. Level 1 is a play and stop button which loads an animation onto Level 2, however once the movie is loaded onto Level 2, you can still press the play button which causes the animation to disappear for a split second and then starover again.

Is it possibe to tell a button that if animation.swf is loaded onto level 2, not to do anything. If animation.swf is not loaded then load it?

Cheers.

(If im not making any sense, I can whip up a .fla)

if you could… please provide an FLA. shouldn’t be too hard to do what you’re saying… just need some reference to work from.

He, I could use this to, my site has 1 movie witch loads all other parts dynamic.

One the animation is loaded, it plays. But when play is pressed, the animation starts again, this is what I would like to stop by way of telling the button to do nothing if animation.swf is already loaded onto level 1.

Thanks for the reply David :slight_smile:

Just put a variable on the first frame of your loaded movie. Then on your button use an if statment to determine if the movie is loaded by looking at that variable.

hope this helps have a look here i think this is what you need

http://www.flashkit.com/tutorials/Actionscripting/Disable_-estudiow-767/index.php

Grim

Hey, thanks grimdeath, I never thought of doing that. I got to try it out and see if it works for what Im trying to do.

Also thanks Sorcerer, I know what you mean but I would love an example if possible.

Thanks for the help:beam:

nice to know it helped you out buddy keep flashin :wink: