[help] if then statement

[AS]if (_root.score==“5000”) {
i don’t know why this doesn’t work…
can someone help me plz?
i know that the variable gets up to 5000, because the score box (dynamic text) reads out 5000 when you hit the last block, this is supposed to take it to the next frame, which contains the next level.
thank you!

the code above only executes once, when the movie is loaded. You need to have that inside an onEnterFrame event:

myClip.onEnterFrame = function() {
if (_root.score=="5000") {

oh, i see, thanks
i tried an onClipEvent(enterframe), but it said it could only be used on movie clips
thanks for the help, i definitely learned something :slight_smile: