Показать сообщение отдельно
Старый 17.09.2012, 16:50
PsixokoT вне форума Посмотреть профиль Отправить личное сообщение для PsixokoT Найти все сообщения от PsixokoT
  № 4  
PsixokoT

Регистрация: May 2008
Сообщений: 63
Читать документацию.

1)
Код AS3:
import fl.transitions.*;
import fl.transitions.easing.*;
 
var myTM:TransitionManager = new TransitionManager(my_mc);
myTM.startTransition({type:Fly, direction:Transition.IN, duration: 3, easing:Back.easeOut})
 
myTM.addEventListener("allTransitionsInDone", doneTrans);
 
function doneTrans(e:Event):void{
   trace("The animation has finished!");
   MovieClip(e.target.content).alpha=.5;
}
2)
Код AS3:
TweenLite.to(mc, 1, {x:100, y:100, onComplete:tweenComplete});
 
function tweenComplete():void{
   trace("tweeb complete!");
}