I’ve added a stop AS to a frame, and then a if…play…
Now, the weird thing is, it doesnt work!
And the weirdest stuff has yet to come.
If I add another action inside the if, for example making an MC invisible, it does that action, but it still doesnt play!!!
Does anybody know what the problem is?
? I don’t really get what you mean.
This code was added to the frame itself, not to an MC. But to test it, I added _root.MC._visible =false; so I know the if statement is being runned.
I think your problem it’s actually the opposite of what Voetsjoeba
says. when the hitTest happens it keeps asking flash to play and play and play and as result of this it never actually plays as it’s trying to play (confusing, eh?).
what you need it’s to make sure you only call it once .
eki – You do need an onEnterFrame handler, but not a static one. You need a dynamic onEnterFrame handler, so you can delete it when calling the gotoAndPlay action: