# get\_bytesLoaded

**URL:** https://forum.kirupa.com/t/get-bytesloaded/66645
**Category:** flash
**Created:** [October 7, 2004, 4:04pm UTC](https://forum.kirupa.com/t/get-bytesloaded/66645 "2004-10-07T16:04:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![VoS](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@VoS](https://forum.kirupa.com/u/VoS)
#### Post date: [October 7, 2004, 4:04pm UTC](https://forum.kirupa.com/t/get-bytesloaded/66645/1 "2004-10-07T16:04:58Z")

</div>

```auto

if(programChosen!=tester111){ /// whats inside here executes if program is changed
loadMovie(programChosen,"content");
loadinginnew=true;
trace("woooaaa");
} ///// stopped executing insider stuffz00r here
if(loadinginnew==true){ // makin preloader here
trace("wooe");
bytes_loaded = getBytesLoaded();
bytes_total = getBytesTotal();
getPercent = bytes_loaded/bytes_total;
beginTxt.text = Math.round(getPercent*100)+"%";
 
if (bytes_loaded == bytes_total) {
trace("true");
loadinginnew=false;
blocka.play();
trace("loading done moving to 1st page");
pageNext._alpha=100;
pageNext.play();
content.gotoAndStop(1);
}
}
tester111=programChosen;
 
 

```

this is executed when a ceratin button is pressed and loads in a movie in to the .swf , the movie is loaded into the ‘content’ movievlip and displayed correctly , but the preloader is not getting the bytes of it , i know im missing sumthing but what?
