Share Posted July 17, 2015 Hello.I would like to know if it is possible to give the TweenLite.to parameter 'onComplete' an anonymous function to be executed. Something like this: TweenLite.to(myObject, 1, {alpha:0, onComplete:function() { trace("something happens here"); someCounter += 1; } }); ?? or is there a way to do something close ? Link to comment Share on other sites More sharing options...
Share Posted July 17, 2015 That code will work exactly as you have it. Did you have a problem? Link to comment Share on other sites More sharing options...
Author Share Posted July 20, 2015 Well.......... I have no idea what I did between the time I tested it and the time I posted the question, because I can assure ;D that it did not work at all. Now I`m testing it and .... it actually does what it should do .... strange . Sorry for this post and for the late answer. Cheers.PS: Do I have to set this Forum Question as solved or you ? or it actually does not need to be checked at all. Link to comment Share on other sites More sharing options...
Share Posted July 20, 2015 No worries, these weird things happen all the time. It's part of being a developer Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now