![]() |
|
||||||||||
|
|||||||
|
|
« Предыдущая тема | Следующая тема » |
| Опции темы | Опции просмотра |
|
![]() |
![]() |
|
|||||
|
Регистрация: Jul 2007
Сообщений: 21
|
Что думаете по поводу вляния одних процессов на другие.
По клику на кнопке вызывается tween изображения, но по каким-то причинам, изображение может вместо движения по заданной траектории, просто дёрнуться и всё. С чем это связано? со стабильностью tween? подгрузкой и отображением в это время других изображений? событиями по таймеру? какие есть подходы к решению данной проблемы? Последний раз редактировалось koresh&; 13.07.2008 в 00:06. |
|
|||||
|
Регистрация: Jul 2007
Сообщений: 21
|
fljot, да, родной tween.
А почему он его собирает, действие то ещё выполняется? да, спасибо, хорошая мысль. http://maohao.wordpress.com/category/flash/ ------------------------------------------------ Garbage collection in FP(AS3) 1. To remove an object (to authorize Flash Player to garbage collect it in the next GC cycle), simply remove the references to the object by doing so: var fruit:Fruit= new Apple(); fruit = null; or reuse the reference and stuff it with another object, like so: fruit = new Orange(); 2. Since garbage collection of a large amount of objects will be a big performance hit, rule of thumb is, you should strive to reuse rather than to delete an object for GC whenever possible. 3. When the programmer authorizes FP to garbage collect an object, he should always remember the followings: * Remove all the event listeners of the target before removing it; * Remove all the intervals, timers (Timer/timeout) that are associated with the object; * Remove all the timeline functions within the instances of DisplayObject that are associated with the object; * Remove all the tween instances and onEnterFrame handlers that are associated with it. * URLLoader is also on the blacklist as some people noticed. --------------------------------------------------------------------------- Последний раз редактировалось koresh&; 13.07.2008 в 17:30. |
![]() |
![]() |
Часовой пояс GMT +4, время: 19:37. |
|
|
« Предыдущая тема | Следующая тема » |
|
|