Jump to content
GreenSock

Philip Bulley

onInit callback removed in v12

Recommended Posts

I have a tween with a delay of x secs and I want to execute some custom code just before that tween begins. onStart is triggered too late, as that fires just after the tween has started. onInit used to be the solution pre v12, but sadly this seems to have been removed.

 

 

 

34. Removed onInit and onInitParams special properties (it’s doubtful many people used them anyway)

 

From http://www.greensock.com/v12/

 

How can I achieve the same thing with v12?

Thanks.

Link to comment
Share on other sites

Hi,

 

The following thread explains a little bit more about the removal of onInit:

 

http://forums.greensock.com/topic/6060-what-happened-to-oninit/?hl=oninit

 

If you still need help simulating the behavior of onInit or have a situation that requires a solution different than what is suggested there let us know.

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.
×