Показать сообщение отдельно
Старый 19.07.2011, 14:47
КорДум вне форума Посмотреть профиль Отправить личное сообщение для КорДум Найти все сообщения от КорДум
  № 12  
Ответить с цитированием
КорДум
 
Аватар для КорДум

блогер
Регистрация: Jan 2008
Адрес: syktyvkar
Сообщений: 3,803
Записей в блоге: 10
Что вы открыли и где смотрите?
http://www.greensock.com/as/docs/twe...elineLite.html - вот ссылка. Там есть примеры.

Добавлено через 40 секунд
Код AS3:
import com.greensock.*;
 
//create the timeline and add an onComplete callback that will call myFunction() when the timeline completes
var myTimeline:TimelineLite = new TimelineLite({onComplete:myFunction});
 
//add a tween
myTimeline.append(new TweenLite(mc, 1, {x:200, y:100}));
 
//add another tween at the end of the timeline (makes sequencing easy)
myTimeline.append(new TweenLite(mc, 0.5, {alpha:0}));
 
//reverse anytime
myTimeline.reverse();
 
//Add a "spin" label 3-seconds into the timeline
myTimeline.addLabel("spin", 3);
 
//insert a rotation tween at the "spin" label (you could also define the insert point as the time instead of a label)
myTimeline.insert(new TweenLite(mc, 2, {rotation:"360"}), "spin");
 
//go to the "spin" label and play the timeline from there
myTimeline.gotoAndPlay("spin");
 
//add a tween to the beginning of the timeline, pushing all the other existing tweens back in time
myTimeline.prepend(new TweenMax(mc, 1, {tint:0xFF0000}));
 
//nest another TimelineLite inside your timeline...
var nestedTimeline:TimelineLite = new TimelineLite();
nestedTimeline.append(new TweenLite(mc2, 1, {x:200}));
myTimeline.append(nestedTimeline);
__________________
тут я