Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   ActionScript 3.0 (http://www.flasher.ru/forum/forumdisplay.php?f=83)
-   -   TimelineLite не работает clear (http://www.flasher.ru/forum/showthread.php?t=140619)

incvizitor 03.06.2010 17:37

TimelineLite не работает clear
 
В документации зелёных носков написано:

Цитата:

clear(tweens:Array = null):void
Empties the timeline of all child tweens/timelines, or you can optionally pass an Array containing specific tweens/timelines to remove.
У меня есть код:

Код AS3:

trace(timeLine.getChildren());
timeLine.clear();
trace("***",timeLine.getChildren());

Также пробовал:

Код AS3:

trace(timeLine.getChildren());
timeLine.clear(timeLine.getChildren());
trace("***",timeLine.getChildren());

Output получился вот такой (в обоих случаях):

Цитата:

[object TweenLite],[object TweenLite]
*** [object TweenLite],[object TweenLite]
То есть, функция clear ничего не очистила(( Чем такое могло бы быть вызвано?


Часовой пояс GMT +4, время: 20:08.

Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.