Jump to content
Search Community

Giving anonymous function to 'onComplete'

Gregor3637 test
Moderator Tag

Recommended Posts

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

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

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