well, if you pass loop = true
add the listener and on cycle remove listener and set loop to false, its one way

another one is to setPlaySequences([myseqquence]];
and add a sequence Done event, (addOnSequenceDone(myFunction)), this event will be triggered by the last element of the sequences array.
in this case you pass just one.once it reaches last frame.
its triggers your callback.

the animation sequence while playing can return you a frame number
so you could check for instance in your enterframe after you updateTime();

if(myAnim.frame == 86)
        trace("i'm out");

read the doc on Geometry  and Mesh classes in core.base package

Fabrice


On Jul 8, 2009, at 8:38 PM, Francisco Rojas wrote:

Fabrice i haven't figured out how to doit with framecount and CycleEvent, because the cycle event isn't dispatched when the animation ends.

Could you give me some advice?

On Mon, Jul 6, 2009 at 4:29 PM, Fabrice3D <[email protected]> wrote:

Hi Francisco,
you can check frame count or add a cycle event

Fabrice

On Jul 6, 2009, at 7:14 PM, Francisco Alexis wrote:


Hi,

i'm working with md2 models and i want to know if certain animation
ended.

how can i do that?

thanks for any help.



Reply via email to