Jump to content
Search Community

Gory

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Gory

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

×
×
  • Create New...