Hi,
I created a player to start and stop an animation. Everything is good, the only thing I can't solve is how to update the position of the slider's knob. Here is the code I tried:
btn_play.addEventListener(MouseEvent.CLICK, play_klick);
function play_klick(event:MouseEvent):void{
animation.play();
scene.addEventListener( Scene3D.UPDATE_EVENT, update_pos );
}
var vid_pos:int;
function update_pos(e:Event):void{
vid_pos = Math.round(animation.currentFrame * boundWidth / animation.frames.length + trackX);
sliderKnob.x = vid_pos;
}
Can anybody help?