The lo-down:
I have a counter that displays a dynamic number according to the frame it’s parent movie is on. It checks to see if it’s the right number for the frame by using an enterFrame check. Simple.
It keeps checking and I want it to stop. Ok…
I want it to stop only when the parent movie is NOT playing. Harder.
I put this into a true/false type o thing. I need to set the values for the variable “myPlay” so myPlay = theMovieClipCalledLeaf.is.Playing; or something.
Glossary:
leaf (the movieclip that plays, the one we find the _currentframe of)
mood (the clip that stores the dynamic text box)
moodPoints (the dynamic text box)
Code:
_level0.leaf.mood.onEnterFrame = function() {
myNumber = _level0.leaf.mood._currentframe;
if (myPlay = true){
_level0.leaf.mood.moodPoints.text = myNumber;
}else{
(myPlay = false)
delete this.onEnterFrame;
}
}
Blue