Hey this is basically how I have created a media window.
I want the first flv file to load and play. This works fine but What I would like to mash into the equation is a detector for the bytesloaded and if it has loaded say 30% then start playing.
It is a temporary pause the logic of the function is fine but my methods are not. If you know what i mean.
This is the pob: [COLOR=darkorange]videoLoad_then_play();[/COLOR]
var loaderInterval = setInterval(videoLoadStatus,100);
var loaderAmount:Number;
function videoLoadStatus(){
loaderAmount = net_stream.bytesLoaded / net_stream.bytesTotal;
loader.loadbar._width = loaderAmount * loadbar_Width;
loader.scrub._x = net_stream.time / duration * loadbar_Width;
videoLoad_then_play();
}
function videoLoad_then_play(){
if(loader.loadbar._width >= (loadbar_Width/5)){
net_stream.pause();}
delete videoLoader_then_play();
}
Is there a beter way to do this. The delete and the interval dont seem to be in patnership.
:pir: