yuetyeelo2855 / tweener

Automatically exported from code.google.com/p/tweener
0 stars 0 forks source link

Tweener.setTimeScale throws a TypeError: Error #1009 #76

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
AS3 / CS4 / Windows 7 / Tweener 1.31.71.

I was setting the Tweener.setTimeScale(2) at the very start of my application 
and was receiving the error:

TypeError: Error #1009: Cannot access a property or method of a null object 
reference.  at caurina.transitions::Tweener$/getCurrentTweeningTime()   at 
caurina.transitions::Tweener$/setTimeScale()

This was because the _tweenList:Array contained a couple of null entries which 
caused the setTimeScale function to fall over.  The function already checks to 
see if the _tweenList != null before running the loop, however it also needs to 
check if each _tweenList[i] != null. 

Hope this helps

Julian

Original issue reported on code.google.com by julian.k...@gmail.com on 24 Jun 2010 at 11:09