![]() |
|
||||||||||
|
|||||
|
Регистрация: May 2009
Сообщений: 122
|
Цитата:
я открыл класс TimelineLite, но не знаю просто что мне нужно Добавлено через 49 секунд Цитата:
![]() |
|
|||||
|
Что вы открыли и где смотрите?
http://www.greensock.com/as/docs/twe...elineLite.html - вот ссылка. Там есть примеры. Добавлено через 40 секунд 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);
__________________
тут я |
|
|||||
|
Регистрация: Jan 2008
Сообщений: 82
|
Так никто не говорит отказываться от класса Tween. Просто цикл заменить таймером.
|
|
|||||
|
Регистрация: May 2009
Сообщений: 122
|
Цитата:
|
|
|||||
|
Регистрация: May 2009
Сообщений: 122
|
Тоесть мне нужно применять ЭТО в моем цикле ? Или цикл уже не нужен ?
|
|
|||||
|
Регистрация: May 2009
Сообщений: 122
|
Цитата:
А для задержки, чтоб фигура долже простояла на новой координате можно использовать delay? |
![]() |
![]() |
Часовой пояс GMT +4, время: 08:41. |
|
|
« Предыдущая тема | Следующая тема » |
| Теги |
| цикл for |
|
|