Could some one elaborate

for the movieclips associated with my button action i’m trying to set a variable to trueas when ever my MC starts to play. Then in the on (release) function have a

if (variable == true)

…play this other movie clip instead… then go on to play the intended movie clip

else play the intended movie clip

i’m trying to set this up for my nav, so i don’t have more than one mc playing at a time. a user ‘sirtimbly’ showed me where to start, but i was wondering if some one could elaborate on what exactly i’m trying to do. cause i tried doing this and it didn’t seem to work out for me.

and how would this be done exactly?

post up the .fla

remember what i want to do is have the out animation of the current
movie clip play when ever the user decides to click on another button
while it is playing.

so if the user clicks on button 3 while button2’s movie is playing then
flash knows to play mc2 out animation before it plays mc3. know what
i mean?

Senocular has an fla on his site that does exactly what you want. Check it out:

click me!

:hr:

i don’t have flash on this pc but your on the right track.

set a variable to see what movieclip is playing and then tell flash what you want from there.

ex


mcPlaying = false;
myButton.onRelease = function{
if(mcPlaying == false){
//do something
}
mcPlaying = true;
}

thanks for the feed back!

i’m going to entegrate that into my site. takes some shifting around, but
i think i can do it. hope to be done with it by the end of the day.

thanks again!

:thumb: good luck!