begininend / papervision3d

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

MD2 doesn't dispatch any AnimationEvent #166

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. load MD2 and play any animation.

What is the expected output? What do you see instead?
there is no way to tell when an animation channel loops or passed a keyframe.

What version of the product are you using? On what operating system?
revision 867

Please provide any additional information below.

attached patches with suggestions for AnimationEvent and MD2

Original issue reported on code.google.com by kishalmi@gmail.com on 27 Jan 2009 at 2:32

Attachments:

GoogleCodeExporter commented 9 years ago
while at it, another useful addition to MD2.as
md2.goto("run",4); md2.stop();

/**
 * jumps to a frame
 */
public function goto(clip:String=null,frame:int=0):void
{
    if( clip && _channelByName[clip] ) 
        _currentChannel = _channelByName[clip];
    if( _currentChannel.keyFrames[frame] ) 
        _currentChannel.updateToFrame(frame);
}

Original comment by kishalmi@gmail.com on 30 Jan 2009 at 10:49

GoogleCodeExporter commented 9 years ago
so....is there a reason why this hasn't made it into the newest version of
papervision 883?  Has this been tested? 

Original comment by guidew...@gmail.com on 22 Apr 2009 at 9:25