ActionScript 3.0 :: Removing OnComplete From TweenLite?Mar 3, 2011
if I assign an onComplete function in a TweenLite.to() call.. I can't seem to figure out how to remove the onComplete function of that tween incase I don't want it to be called for some reason..
ok so i have a prev and next buttons .. and want to have it so that i can cycle through my slides (right now they overlap each other).. well with each it assigns the onComplete for that current_slide..
what i want to do is make it so that if there is a new tween for a new slide that the old current_slide doesn't call the onComplete..
so i store the old current_slide as previous_slide and then I tried to cancel the onComplete like you do other properties with killTweensOf()
this doesn't work it still gets fired..
i think its cause this is only supposed to remove tweenable properties and not callback functions.. but there doesn't seem to be able to prematurely remove a onComplete function.