Hi everyone,
I just have a quick question regarding functions. Is it possible to stop a function through code? For example, if I have function rotate() {} and inside that function at a given point, being able to stop it from executing?
Thanks!
Printable View
Hi everyone,
I just have a quick question regarding functions. Is it possible to stop a function through code? For example, if I have function rotate() {} and inside that function at a given point, being able to stop it from executing?
Thanks!
something like this ??
PHP Code:var i:Number = 0;
function rotate(){
trace(i++);
if(i>50) onEnterFrame = null;
};
onEnterFrame = rotate;
Not exactly, but it did help me make a working solution. You've helped me once again, haha.
Thanks. :D