Gory
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by Gory
-
-
hello everybody,
i m trying to do something very simple but i can't make it work(i'm new to AS), i just want to trigger a function onComplete, i don't understand what i do wrong, at the end of the tween nothing happens appart from text getting "some new text" .
here is the code:
TweenMax.to(bg_preloader, 2, {_alpha:0,ease:Elastic.easeOut, onComplete:nextTw, onCompleteScope:this }); function FinishTween() { this.gotoAndStop("main"); }; this.Dyntxt_pre.text ="some new text"; function nextTw ( ):Void { TweenMax.to(Dyntxt_pre, 3, { _xscale:400, _yscale:400,_alpha:0, ease:Bounce.easeOut}); if (bg_preloader._alpha == 0){ FinishTween(); bg_preloader._visible =false; Dyntxt_pre._visible =false; } }
i've read other post on this topic but couldn't find a solution, i hope someone can help;
thanks in advance.
gory
as2 onComplete not triggering function
in GSAP (Flash)
Posted
yes,i have imported them, i really don't know where the problem comes from.
here is the fla, hope someone can help. thanks