# Preloader Problem

**URL:** https://forum.kirupa.com/t/preloader-problem/24790
**Category:** Uncategorized
**Created:** [July 4, 2003, 7:22pm UTC](https://forum.kirupa.com/t/preloader-problem/24790 "2003-07-04T19:22:06Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![sdrawkcaB](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@sdrawkcaB](https://forum.kirupa.com/u/sdrawkcaB)
#### Post date: [July 4, 2003, 7:22pm UTC](https://forum.kirupa.com/t/preloader-problem/24790/1 "2003-07-04T19:22:06Z")

</div>

I’ve never made a preloader before, so I don’t know much about them. [[This](http://www.kirupa.com/developer/actionscript/preloader.htm) ] is the tutorial I went to, and I followed the directions and it didn’t work. The animation was like 340 frames and nothing came up. I pasted the code right and followed the next steps but it didn’t work. Anyone know whatsup?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 4, 2003, 8:00pm UTC](https://forum.kirupa.com/t/preloader-problem/24790/2 "2003-07-04T20:00:58Z")

</div>

ok in the preloader scene

make a bar then drag it in the main stage, name it in the instance as bar

now the action

in the layer action go to frame 2 and add this code

```php
if (_root.getBytesLoaded() != _root.getBytesTotal()) {
    gotoAndPlay (1);
}
setProperty ("bar", _xscale, (_root.getBytesLoaded()/_root.getBytesTotal())*100);
per = (_root.getBytesLoaded()/_root.getBytesTotal())*100;

```

hope it will help you

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 5, 2003, 3:20am UTC](https://forum.kirupa.com/t/preloader-problem/24790/3 "2003-07-05T03:20:01Z")

</div>

> \*Originally posted by flash\_legend \*  
> \*\*ok in the preloader scene

make a bar then drag it in the main stage, name it in the instance as bar  
\*\*

Aight, the preloader scene? So I’m going to have a minimum of 2 scenes? One of the preloader and the rest for the animations?

And what do you mean make a bar and drag it to the main stage? And name it in the instance? Hmm… Can you kinda put them in like beginners terms and kinda explain a little more? I appreciate it.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 5, 2003, 11:07am UTC](https://forum.kirupa.com/t/preloader-problem/24790/4 "2003-07-05T11:07:32Z")

</div>

i will make the file for you and i will zip it

so please give for a short time and i will add it in the forum

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 5, 2003, 4:30pm UTC](https://forum.kirupa.com/t/preloader-problem/24790/5 "2003-07-05T16:30:44Z")

</div>

Thanks man. I really appreciate it.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 5, 2003, 7:25pm UTC](https://forum.kirupa.com/t/preloader-problem/24790/6 "2003-07-05T19:25:27Z")

</div>

ok pal this is the fla

hope you get the benefit from it

> **[Yahoo Small Business - Cheap Domains, Web Hosting, Website Builder, Ecommerce...](https://smallbusiness.yahoo.com/)**
>
> Yahoo Small Business Offers Cheap Domain Names, Web Hosting, Easy Website Builder, Business Email, Local Listings, and Ecommerce Solutions for Your Small Business.

see you

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 6, 2003, 8:05am UTC](https://forum.kirupa.com/t/preloader-problem/24790/7 "2003-07-06T08:05:08Z")

</div>

That didn’t really help much because I don’t know how it works or anything. I don’t know how I can make it load anything…

Do you know of any good tutorials? Or anything that can show me what the things in the .fla actually do?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 9, 2003, 2:19pm UTC](https://forum.kirupa.com/t/preloader-problem/24790/8 "2003-07-09T14:19:34Z")

</div>

No one?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 9, 2003, 8:16pm UTC](https://forum.kirupa.com/t/preloader-problem/24790/9 "2003-07-09T20:16:19Z")

</div>

[well… there is flash kit where you will find tones of toturial there including preloaders](http://www.flashkit.com)

[also there is actionscript.org …there is tutorial there which will learn you more](http://www.actionscript.org)
