[sorry for my bad english]
hello all..
i'm beginner in red5...
i was search all  day to resolve my progressbar problem..
how can i get information about bytesLoaded and bytesTotal,
i was try using this code :
<code>
var loaded_interval:Number = setInterval(checkBytesLoaded, 500, this.ns);

           function checkBytesLoaded(my_ns:NetStream) {
           var pctLoaded:Number = Math.round(my_ns.bytesLoaded /
my_ns.bytesTotal * 100);
           debugText.text = Math.round(my_ns.bytesLoaded / 1000) + " of " +
Math.round(my_ns.bytesTotal / 1000) + " KB loaded (" + pctLoaded + "%)";
           trace("bytesLoaded "+pctLoaded);
           mySlider.dragLoaderBar._xscale = pctLoaded;
           if (pctLoaded >= 100) {
               clearInterval(loaded_interval);
           }

</code>

but still unlucky, i get message

bytesLoaded NaN


i'm using 0.5 version now...

thanks...
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to