Jump to content
Search Community

TypeError: Error #1009... did I call the AS correctly?

dirty30 test
Moderator Tag

Recommended Posts

TypeError: Error #1009: Cannot access a property or method of a null object reference.

at com.greensock::TweenLite/init()

at com.greensock::TweenLite/renderTime()

at com.greensock.core::SimpleTimeline/renderTime()

at com.greensock::TweenLite$/updateAll()

 

I have the AS3 com folder relative to the fla.

In my timeline I have this in first frame:

 

import com.greensock.*;

import com.greensock.easing.*;

 

What do I need to do to get rid of the Error #1009?

 

Thanks!

Link to comment
Share on other sites

Well, Im used to using "this" as in:

TweenLite.to(this, 0, {time:.1, delay:6 ,onComplete:nextFrame});

to add a delay at the end of an animation sequence.

 

What can I use with tweenLite to add a delay before the nextFrame without referencing a movie clip?

 

Thanks!

Link to comment
Share on other sites

Is the code on the timeline? Have you tried this?:

 

import com.greensock.TweenLite;
stop();
TweenLite.delayedCall(6, nextFrame);

 

If you're still having trouble, please post a sample FLA that demonstrates the issue. (don't forget to zip it before posting)

Link to comment
Share on other sites

Yes, that part is working. Big thanks!

 

Im now trying to figure out how to get the syntax right at the end of my timeline where I have the last frame tell it:

 

TweenLite.to(this,  {delay:6 ,onComplete:gotoAndPlay, onCompleteParams:["start"]});

 

So, I have to kill the "this" and rethink the syntax of the rest.

 

Love to have your input, since this is my last error. ;-)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...