This content has been marked as final. Show 5 replies
I guess because of u define tween variables as local variables for function.
remove "var" it should work i guess.
I remove "var" and get a syntax error because of the ":Tween". I remove it, but unfortunelly the stop-statement still doesn't work...
are u sure that if(box._width < 83) condition working ?
Seems to be working for me.
The one thing I changed is that I wrapped the if else statements that check the width of box inside of an onEnterFrame function, that way the width of the box is checked continuously as the tween is running, and not just once when the function runs.
Here's the code:
The if-statement is working correctly because the other codes inside the statements are executed right. Since I added the "on EnterFrame" the tween stops immedietly because it's is checked all the time.
I execute the "showModel"-function with a onPress-command. Does anyone know what the problem is?