Jump to content
Search Community

onComplete is not called

iShwaR test
Moderator Tag

Recommended Posts

Hi,

 

Can someone help me with the code? The tween is executed properly, although the onComplete function is not triggered when the tween is complete. If you remove the parameters yoyo and repeat from the Tween statement, the onComplete is called properly.

 

import com.greensock.*;

import com.greensock.easing.*;

 

function checkServer() {

trace("chk");

}

function animateTitle() {

TweenMax.from(title_mc, 2, {_alpha:0});

TweenMax.to(title_mc, 2, {yoyo:true, repeat:1, onComplete:checkServer, glowFilter:{color:0xFF0000, alpha:1, blurX:10, blurY:10, strength:2}});

}

animateTitle();

 

Thanks.

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