# netStream bytesTotal property problem

**URL:** <https://forum.kirupa.com/t/netstream-bytestotal-property-problem/229563>\
**Category:** flash\
**Created:** [June 18, 2007, 4:26pm UTC](https://forum.kirupa.com/t/netstream-bytestotal-property-problem/229563 "2007-06-18T16:26:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Palel](https://avatars.discourse-cdn.com/v4/letter/p/848f3c/32.png) [@Palel](https://forum.kirupa.com/u/Palel)\
**Post date:** [June 18, 2007, 4:26pm UTC](https://forum.kirupa.com/t/netstream-bytestotal-property-problem/229563/1 "2007-06-18T16:26:07Z")

</div>

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.
