http://chattyfig.figleaf.com/pipermail/flashcoders/2005-February/132753.html
This guy had a similar issue but no one replied and i haven't found anything
else in the archives...
Building an flv player and the play/pause button work fine but sometimes the
unpause button will start playing the flv back to fast. It generally seems
to do it at the end of the timeline as well. When you drag the timeline it
works fine and plays back normally. The only difference i can see is that i
set the seek on the drag and not the pause. Couple of snippets below to show
the idea. I won't bother including the whole class structure unless someone
wants it and thinks they can help.
Very basic commands:
PlayBtn Command:
this.onRelease = function(){
if(_parent.clsFLVPlayer.bolPlaying){
_parent.clsFLVPlayer.bolPlaying = false
_parent.clsFLVPlayer.objNS.pause(true);
this.gotoAndStop(1);
}else{
_parent.clsFLVPlayer.bolPlaying = true
_parent.clsFLVPlayer.objNS.pause(false);
//_parent.clsFLVPlayer.objNS.seek(_parent.clsFLVPlayer.objNS.time);
//trace(_parent.clsFLVPlayer.objNS.time)
this.gotoAndStop(2);
};
};
Drag Timeline Command:
mcTimelineDrag.onRelease =
mcTimelineDrag.onReleaseOutside = function(){
var pos =
_parent.clsFLVPlayer.objMetaData.duration * mcTimelineDrag._x /
mcTimelineLoaded._width;
_parent.clsFLVPlayer.objNS.seek(pos);
updateAfterEvent();
_parent._parent.clsFLVPlayer.bolPlaying = true;
_parent._parent.clsFLVPlayer.objNS.pause(false);
_parent.startPlayingBar();
};
Really need some help on this one guys. To view the bug in action look at
http://www.signoffserver.co.uk/product_review/v2 - click and thumbnail image
on the right. To test it drag the timeline towards the end and then press
play/pause a few times.
I am sure that this is not a unique bug so any help would be appreciated or
at least a point in the right direction.
Cheers
Michael Ypes
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com