Hi,
Is it possible to stop a progressive download after a certain amount
of the flv has downloaded.
the situation: I have 9 videos in individual screens on stage, on
rollover they start playing individually, whereas the others play only
a small amount and then stop).
the immediate problem is: how can i get the first frame of nine videos
onto the page as quickly as possible. at the mo, it takes a few
seconds on a very fast connection ( i got 10mbit here), and is too
long for a slower connection)
i am looking to stop download of the individual clips after the first
few frames have been loaded.
how do i do that?
i am using vidPlayer_mc.stop() but that only stop playback not
download isn't it? how can I make sure that download has stopped as
well?
here is the current script on the flv playabck component I am using.
the paths to the nine flv's are set elsewhere:
var loaded_interval:Number = setInterval(checkBytesLoaded, 500, flv_A1);
function checkBytesLoaded(my_ns:NetStream) {
var pctLoaded:Number = Math.round(flv_A1.bytesLoaded /
flv_A1.bytesTotal * 100);
loaded_txt.text = pctLoaded + "%";
if (pctLoaded >= 1) {
clearInterval(loaded_interval);
this.flv_A1.pause(true);
}
}
here is a link to the current site:
http://www.multimediaworkshop.co.uk/TDD/002/
Thanks,
Nik
_______________________________________________
[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