I have a Trouble : Tweensy.stop(instance)

5 views
Skip to first unread message

hika

unread,
Jun 3, 2009, 6:16:54 AM6/3/09
to Tweensy
when instance motion is over,
'Tweensy.stop(instance);' is means Tweensy.stopAll();

I want to do nothing that case. ^^;

陈 云锋

unread,
Jun 11, 2009, 5:21:47 AM6/11/09
to Tweensy
This is a bug, TweensyGroup's remove function to run time more than
add function, _timelines variables may be less than zero, I changed to
use an array to store all the timeline, then use the length of array
instead of _timelines, the problem can be resolved.

陈 云锋

unread,
Jun 11, 2009, 5:25:02 AM6/11/09
to Tweensy
vecTimelines.push(item);

var index:int = vecTimelines.indexOf(item);
if(index >= 0)
{
vecTimelines.splice(index,1);
}

/**
* Whether the TweensyGroup Class has any TweensyTimeline
animations.
*/
public function get hasTimelines() : Boolean {
return (timelines > 0);
}

/**
* Total number of animations in progress for the TweensyGroup
class.
*/
public function get timelines() : int {
return vecTimelines.length;
Reply all
Reply to author
Forward
0 new messages