Hi I am using this code:
//Load and Play Video Function
function loadVideo(sVideoPath:String):void {
//Clear Screen
video.clear();
//Close NetStream
nsStream.close();
//Play Movie
nsStream.play(sVideoPath);
}
To load a new FLV file (this function is run every time a FLV Video Name is clicked in a list).
What is happening is each video loads ok, no problems and plays etc etc… However to test it further I decided to SPAM CLICK just the one link and found that it ultimate broke, that the nsStream.bytestotal even added to itself etc etc. If I then clicked a new FLV Video Name it would break even further, trying to download two FLVs and play them both at once.
How can I fix this? I tried using the Netstream.close(); but that doesn’t seem to have helped.
Cheers,
Ryan