brlrt / away3d

Automatically exported from code.google.com/p/away3d
0 stars 0 forks source link

setPlaySequences() - won't loop last #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
// model is a parsed MD2 with animations
// only one listener - mousedown - is added

model.play( new AnimationSequence("stand", true, true, 6) ); // loops fine
model.addOnMouseDown( onModelMouseDown );

private function onModelMouseDown( event:MouseEvent3D ):void {
  var m:Mesh = (event.object as Mesh);
  m.setPlaySequences( [
    new AnimationSequence("taunt", true, false, 6),
    new AnimationSequence("stand", true, false, 6)
  ], true );
}
// that will play "taunt", then "stand" as expected but "stand" won't loop.

// using Away3D SVN trunk, Vista32, FlexBuilder3

Original issue reported on code.google.com by kishalmi@gmail.com on 4 Jun 2008 at 11:13

GoogleCodeExporter commented 8 years ago

Original comment by fabric...@gmail.com on 6 Jun 2008 at 2:02

GoogleCodeExporter commented 8 years ago

Original comment by fabric...@gmail.com on 6 Jun 2008 at 2:04

GoogleCodeExporter commented 8 years ago
obj.setPlaySequences([a,b,c,d], true); will loop last AnimationSequence
obj.setPlaySequences([a,b,c,d], false); will not loop last AnimationSequence

Original comment by fabric...@gmail.com on 7 Jun 2008 at 11:55