# Preloader

**URL:** https://forum.kirupa.com/t/preloader/186545
**Category:** Uncategorized
**Created:** [April 22, 2006, 4:46am UTC](https://forum.kirupa.com/t/preloader/186545 "2006-04-22T04:46:10Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Cucho](https://avatars.discourse-cdn.com/v4/letter/c/bc79bd/32.png) [@Cucho](https://forum.kirupa.com/u/Cucho)
#### Post date: [April 22, 2006, 4:46am UTC](https://forum.kirupa.com/t/preloader/186545/1 "2006-04-22T04:46:10Z")

</div>

Hello, well this is my question, i made up a preloader but am having some problems with the action script, well this is it

var myMCL:MovieClipLoader = new MovieClipLoader ();  
var myListener:Object = new Object ();

myMCLaddListener(myListener);

myListener.onLoadProgress = function(target\_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number) {  
var Loaded:Number = Math.round ((bytesLoaded/bytesTotal) \* 100);  
progressBar.gotoAndStop(loaded);  
}

myMCL.loadClip(“[http://www.lynda.com/flash8esst/clouds-lrg.jpg](http://www.lynda.com/flash8esst/clouds-lrg.jpg)”, “container”);

Also, this has nothing to do with actionscript, when i preview in web page view(F12) nothing happens, so any1 could help me fix that…

---

<div class="post-metadata">

### Author: ![B\_L\_U\_E](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@B\_L\_U\_E](https://forum.kirupa.com/u/B_L_U_E)
#### Post date: [April 22, 2006, 4:48am UTC](https://forum.kirupa.com/t/preloader/186545/2 "2006-04-22T04:48:41Z")

</div>

[AS]  
myMCLaddListener(myListener);[/AS]you forgot a period, might be a typo 🙂

but the problem is to remove the container from quotes. [AS]myMCL.loadClip(“[http://www.lynda.com/flash8esst/clouds-lrg.jpg](http://www.lynda.com/flash8esst/clouds-lrg.jpg)”, container);[/AS]

---

<div class="post-metadata">

### Author: ![Cucho](https://avatars.discourse-cdn.com/v4/letter/c/bc79bd/32.png) [@Cucho](https://forum.kirupa.com/u/Cucho)
#### Post date: [April 22, 2006, 4:55am UTC](https://forum.kirupa.com/t/preloader/186545/3 "2006-04-22T04:55:08Z")

</div>

still isn’t working, flash need setup something so it can have access to internet?

---

<div class="post-metadata">

### Author: ![B\_L\_U\_E](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@B\_L\_U\_E](https://forum.kirupa.com/u/B_L_U_E)
#### Post date: [April 22, 2006, 5:08am UTC](https://forum.kirupa.com/t/preloader/186545/4 "2006-04-22T05:08:19Z")

</div>

Also you need to change ‘loaded’ to ‘Loaded’. [AS]progressBar.gotoAndStop(loaded);[/AS] Other than that, make sure your scope for “container” is correct.

---

<div class="post-metadata">

### Author: ![Cucho](https://avatars.discourse-cdn.com/v4/letter/c/bc79bd/32.png) [@Cucho](https://forum.kirupa.com/u/Cucho)
#### Post date: [April 22, 2006, 2:02pm UTC](https://forum.kirupa.com/t/preloader/186545/5 "2006-04-22T14:02:45Z")

</div>

here goes my .fla if you can find any error…

---

<div class="post-metadata">

### Author: ![drunkasssk8er](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/drunkasssk8er/32/2384_2.png) [@drunkasssk8er](https://forum.kirupa.com/u/drunkasssk8er)
#### Post date: [April 25, 2006, 3:33pm UTC](https://forum.kirupa.com/t/preloader/186545/6 "2006-04-25T15:33:34Z")

</div>

ok this may seem like a pretty noobish respose but are u sure u dont mean:

```auto
gotoAndStop("loaded");
 
//rather than
 
gotoAndStop(loaded);

```

guessin not but thought id mention it xD

The Lee

---

<div class="post-metadata">

### Author: ![xohol](https://avatars.discourse-cdn.com/v4/letter/x/59ef9b/32.png) [@xohol](https://forum.kirupa.com/u/xohol)
#### Post date: [April 25, 2006, 3:37pm UTC](https://forum.kirupa.com/t/preloader/186545/7 "2006-04-25T15:37:04Z")

</div>

You will not be able to preview the preloaders using the movieClipLoader. even if you preview with simulated download, the clip is still loaded instantly. The only way to preview preloaders created with this method is to upload to the internet, and view.

---

<div class="post-metadata">

### Author: ![drunkasssk8er](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/drunkasssk8er/32/2384_2.png) [@drunkasssk8er](https://forum.kirupa.com/u/drunkasssk8er)
#### Post date: [April 25, 2006, 3:38pm UTC](https://forum.kirupa.com/t/preloader/186545/8 "2006-04-25T15:38:12Z")

</div>

Also ignore what i said lol, just actually read the code lol 😛
