Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Oct 29, 2015 · 0 comments
Open

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

GoogleCodeExporter opened this issue Oct 29, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 24 Jun 2010 at 11:09

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant