# getBytesLoaded returns no value!

**URL:** https://forum.kirupa.com/t/getbytesloaded-returns-no-value/103893
**Category:** Uncategorized
**Created:** [March 10, 2004, 11:33am UTC](https://forum.kirupa.com/t/getbytesloaded-returns-no-value/103893 "2004-03-10T11:33:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bmerens](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bmerens](https://forum.kirupa.com/u/bmerens)
#### Post date: [March 10, 2004, 11:33am UTC](https://forum.kirupa.com/t/getbytesloaded-returns-no-value/103893/1 "2004-03-10T11:33:35Z")

</div>

The fallowing preload does not work and I don’t know why

on frame 1 : button gotoplay(2)

on frame 2 : movieclip loadBar and a textfield called loadText and with the fallowing AS :

loadMovieNum(“1.JPG”, 1);  
bytes\_loaded = Math.round(\_level1.getBytesLoaded());  
bytes\_total = Math.round(\_level1.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
this.loadBar.\_width = getPercent_100;  
this.loadText = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
\_level1.\_x = 400;  
\_level1.\_y = 150;  
this.gotoAndstop(4);  
}

///////////////////////////////////////  
on frame 3 : gotoplay(3)  
on frame 4 : statique text “Image loaded” with stop

problem : there is no bytes counting . loadText and loadBar do not work.

I think that (\_level1.getBytesLoaded() ) is no the command tu use to refer to the image 1.JPEG loaded with loadMovieNum(“1.JPG”, 1);:h:
