Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
friendlygiraffe

TweenNano gotoAndStop onCompleteParams

Recommended Posts

TweenNano.to(mc,0.3,{alpha:0,onComplete:gotoAndStop,onCompleteParams:[1]});

Hi, I'm not having much luck with the above code. It is supposed to go to Frame 1 on the Main Timeline, but so far, only NextFrame and PrevFrame work. I cannot seem to get gotoAndStop to pass the parameters

 

Thanks

Link to post
Share on other sites

Sounds like a scope issue. 

TweenNano.to(mc, 0.3, {alpha:0, onComplete:gotoAndStop, onCompleteParams:[1], onCompleteScope:mc});
Link to post
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.

×