Hey dudes,
We're working on a as3 project here using Tweener as our animation package, and i thought i'd pass along a tip that was driving me mad. Anyone who's used as3 knows the steep learning curve that is taming the memory usuage. Making sure nothing references an object, takes some serious foresight and lots guess and check when trying to track down the left over references.
(...)
The solution is ugly but simple, don't make anonymous functions in the function that calls tweener, OR write a anon function as the call back (onUpdate: function(){}.

Thanks, Mario, I'll investigate the issue later and find an automatic solution.

I'm a bit surprised because the objects and function references *do* get removed after the tweening is done, but we might be missing something about how AS3 saves references to anonymous objects.


Zeh
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to