TweensyTimeline dispose

7 views
Skip to first unread message

Valentin Abalmasov

unread,
Oct 5, 2009, 5:47:27 AM10/5/09
to Tweensy
Hi.

First of all, thanks for the greatest tweening library.

The question i wanted to ask is:
Do I need to manually call dispose on TweensyTimeline, returned by
Tweensy.to,
or it will be disposed automatically after the tween will be stopped/
finished playing?

Thanks in advance,
Valentin

Shane McCartney

unread,
Oct 5, 2009, 7:14:40 AM10/5/09
to twe...@googlegroups.com
I totally agree!

I usually dispose Tweensy when disposing my class. The calling of this method needs to be done manually though.

Shane McCartney

unread,
Oct 5, 2009, 2:16:46 PM10/5/09
to twe...@googlegroups.com
Oh and when I say 'my Class' I mean the custom Class which has constructed an instance of a TweensyGroup. So within the custom Classes dispose method I would dispose my instance of a TweensyGroup as well :) The TweensyTimelines are disposed for you automatically and if Object Pooling then the TweensyTimeline instance is committed back to the pool for re-use. Hope that helps!

On Mon, Oct 5, 2009 at 10:47 AM, Valentin Abalmasov <valentin....@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages