This content has been marked as final. Show 3 replies
there's probably a variable being used to store the current depth and it's not initialized.
just out of curiosity, does "depth" have a limit?
first i set
var depth = 0;
which seemed to make the animation stop after a while, then when i changed it to:
depth = 0;
it seemed to work better?! am i crazy?
anyway, you solved the problem, i thank you.
if depth is defined in a function, prefixing it with var makes the depth variable local to the function and not accessible outside the function. otherwise, there's no difference prefixing with var and not prefixing.
all numbers in flash are limited to 15 decimal places accuracy. but more importantly for depths, is 2^^20 which is the upper limit of depths at which objects are removable using actionscript (like removeMovieClip() and removeTextField() ).