I have this function within my main timeline:
movie1_mc.onEnterFrame = function () {
if (_global.1POSITION == "start" && _global.2POSITION == "finish" ) {
trace ("work 1")
delete this.onEnterFrame
}
}
This works fine. But if I then put an else if statement within this function, it doesnt read the else if statement. I know the statement is right because i deleted the above if code and tried putting the if else statement to it and worked fine.
Its like it can only read one if statement. Any ideas how to get around this? Maybe Im using the wrong function?