Alright, here is my headache: Why does Flash run into an
actionscript error that causes Flash to run slowly? I am sure there
are LOTS of reasons, but give me the more common reason(s). Also to
point out, it gives me this error about half the time. In another
words, it runs and works perfectly sometimes, and other times it
gives me this error. What's up?!
More precisiley when there are more level of "Recursions"
then this error occurs.
Now try to find which value is not set. When a value is
undefined then this is +infinity. Hence loop is infinite.
So in all your loop make a variable that will break the loop
after a number of times execution. In all your loops you must know
the max limit. So make this variable a bit larger than this value.