paulyb Posted June 10, 2010 Share Posted June 10, 2010 hello, huge fan of tweenlite. i'd like to report a bug if i may. i've found that the "onComplete:" property will not work if the function is passing a variable (everything will work but it won't wait for the tween to complete first). for example: //WON'T WAIT FOR BLUR BEFORE MOVING TO myFunctino TweenMax.allTo ([mc1, mc2], 1, {blurFilter:{blurX:45}, onComplete:myFunction(e)}); //WORKS BUT CAN'T PASS A VARIABLE TweenMax.allTo ([mc1, mc2], 1, {blurFilter:{blurX:45}, onComplete:myFunction}); if anybody has a solution to this please share - otherwise developers please consider this in the next version thanks! Link to comment Share on other sites More sharing options...
TronicVolta Posted June 10, 2010 Share Posted June 10, 2010 It's not a bug. Good TweenMax.to (mc, 1, {blurFilter:{blurX:45}, onComplete:myFunction, onCompleteParams:[e]}); Bad TweenMax.to (mc, 1, {blurFilter:{blurX:45}, onComplete:myFunction(e)}); Link to comment Share on other sites More sharing options...
GreenSock Posted June 10, 2010 Share Posted June 10, 2010 Yep, TronicVolta is right - it's not a bug. When you put "()" after a function name, it always tells Flash to call that function immediately. Link to comment Share on other sites More sharing options...
paulyb Posted June 10, 2010 Author Share Posted June 10, 2010 oh awesome - yeah i figured i had to be missing something because that seemed to basic not to work. thanks people! 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