| Re: Stopping an external FLV after it finishes playing by Richard on Jul 22, 2005 at 10:52:03 pm |
by using the NetStream onStatus event handler.
// onStatus events
myNS.onStatus = function(info) {
if (info.code == "NetStream.Play.Stop") {
myNS.seek(0);
myNS.pause();
}
};
Basically, whenever your player starts, stops, or pauses this "onStatus" is triggered. You can use a "if" to check what state it just hit, and if it's a "NetStream.Play.Stop", then you issue commands accordingly.
-Richard
Respond to this post • Return to posts index | |