开发者

Optimizing tweens

What is the best way to clean up after tweens in AS3 no matter what library you are using (or the built-in tween classes). Is there a best-pract开发者_运维百科ice or is it specific to each tween library?


If with "clean up" you mean to clean up the memory used for animations in flash, try

System.gc();

to fire the garbage collection. It will sweep everything out what is not used or lost its reference.

Recycling is also a good idea, even though it highly depends on your coding style and actual project.

For more information on the garbage collection, see the reference.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜