# Preload on Level1

**URL:** https://forum.kirupa.com/t/preload-on-level1/177102
**Category:** programming
**Created:** [January 30, 2006, 9:13am UTC](https://forum.kirupa.com/t/preload-on-level1/177102 "2006-01-30T09:13:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Dislexsick](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@Dislexsick](https://forum.kirupa.com/u/Dislexsick)
#### Post date: [January 30, 2006, 9:13am UTC](https://forum.kirupa.com/t/preload-on-level1/177102/1 "2006-01-30T09:13:17Z")

</div>

Hi, i have a problem involving Pre-loading on level1. I am making a music player, however to get them working seamlessly I had to make a new movie and use loadMovie to insert them properly. The code looks like this:

```auto
on (press) {
 loadMovie("http://www.os-productions.com/ClickZone/swf_proxy.php?file=6", _root.musicMC);//Loads the file from swf_proxy.php** to the MC called musicMC on the root timeline
    _root.musicActive =true
}

```

\*\*This is just something I googled so it doesn’t cache the child swf while i’m testing.  
The movies are mostly just dots at the moment however I am trying to make them so they display the info on-demand, to keep the size down, but I want it to preload. The current system just displays a static message saying loading. I have cheated somewhat and used the NewGrounds PreLoader which is all in an MC with this code:

```auto
_root.stop();
PercentLoaded = _root.getBytesLoaded()/_root.getBytesTotal()*100;
if (PercentLoaded != 100) {
    bar._xscale = PercentLoaded;
} else {
    _root.play()
}

```

However this does not xscale the bar. My problem is what do i need to change for this to work, cos it is very ugly atm.

Thanx for your help,

Josh
