Hi all,
I am getting -1 while checking my_stream.bytesTotal; (progressive)
I tried intervals onEnterFrame even sample from Livedocs don’t work :pa:
what is wrong with this property ??
any ideas ?
code :
function LoadBar () {
loadbar.onEnterFrame = function() {
var perc:Number = Math.round(stream_ns.bytesLoaded/stream_ns.bytesTotal*100);
df.text = perc;
this._xscale = perc;
p.text = perc;
l.text = stream_ns.bytesLoaded;
t.text = stream_ns.bytesTotal;
if (this._xscale>=100) {
delete this.onEnterFrame;
}
};
}
Thanks.