# Circle preloader

**URL:** https://forum.kirupa.com/t/circle-preloader/19533
**Category:** Uncategorized
**Created:** [April 28, 2003, 11:54pm UTC](https://forum.kirupa.com/t/circle-preloader/19533 "2003-04-28T23:54:20Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![filete](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/filete/32/124_2.png) [@filete](https://forum.kirupa.com/u/filete)
#### Post date: [April 28, 2003, 11:54pm UTC](https://forum.kirupa.com/t/circle-preloader/19533/1 "2003-04-28T23:54:20Z")

</div>

Hello there,

Does anyone knows how to make a circle preloader like  
the one on Macromedia web page?

Thanks

---

<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: [April 29, 2003, 12:00am UTC](https://forum.kirupa.com/t/circle-preloader/19533/2 "2003-04-29T00:00:50Z")

</div>

draw the ‘circle’ and convert it to an MC… call it “myMC”

have this script on the root timeline:

```auto

stop()
speed = 5
onEnterFrame = function() {
bloaded = _root.getBytesLoaded
toLoad = _root.getBytesTotal
if(bloaded<toLoad) {
myMC._rotation += speed
} else {
delete this.onEnterFrame
play()
}
}

```

🙂

---

<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: [April 29, 2003, 12:35am UTC](https://forum.kirupa.com/t/circle-preloader/19533/3 "2003-04-29T00:35:16Z")

</div>

Hello again…

I´ve just try this code , but doesn´t work…

I did a streaming play , and what happen was that the circle disapear and  
then after a while it apears and dont even makes the rotation…

I´ve put a video on the 2 frame of the \_root timeline…  
Strange , cos the code seems ok…

If you can try an example and put it on here to download will it be  
great!  
I can´t put my example here cos im using Macintosh and this forum  
doesn´t accept .fla or .swf files from Mac…:hair:

Thanks again

---

<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: [April 29, 2003, 12:37am UTC](https://forum.kirupa.com/t/circle-preloader/19533/4 "2003-04-29T00:37:57Z")

</div>

oh… i was assuming you had the contents on the root timeline. can you zip the fla and attach 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: [April 29, 2003, 12:45am UTC](https://forum.kirupa.com/t/circle-preloader/19533/5 "2003-04-29T00:45:41Z")

</div>

Yes, i have the contents on the root timeline… on frame 2  
on frame 1 i have the preloader and the code that you gave me…

Sorry i can´t put zip file cos im on a MAC and macintosh only works with  
compress .sit and hqx files.

---

<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: [April 29, 2003, 12:55am UTC](https://forum.kirupa.com/t/circle-preloader/19533/6 "2003-04-29T00:55:15Z")

</div>

Hmm… email it to me

**swf\_builder at yahoo dot com**

I’ll have a look 🙂

---

<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: [April 29, 2003, 1:02am UTC](https://forum.kirupa.com/t/circle-preloader/19533/7 "2003-04-29T01:02:24Z")

</div>

??

What is your email??

[swf\_builder@yahoo.com](mailto:swf_builder@yahoo.com) ??

---

<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: [April 29, 2003, 1:05am UTC](https://forum.kirupa.com/t/circle-preloader/19533/8 "2003-04-29T01:05:25Z")

</div>

yeah… :sleep:

---

<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: [April 29, 2003, 2:14am UTC](https://forum.kirupa.com/t/circle-preloader/19533/9 "2003-04-29T02:14:51Z")

</div>

ok  
i just send 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: [April 29, 2003, 3:11am UTC](https://forum.kirupa.com/t/circle-preloader/19533/10 "2003-04-29T03:11:28Z")

</div>

Did you already check the file?

---

<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: [April 30, 2003, 2:56am UTC](https://forum.kirupa.com/t/circle-preloader/19533/11 "2003-04-30T02:56:37Z")

</div>

Ahmed

Get back to me

thanks.

---

<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: [April 30, 2003, 2:59am UTC](https://forum.kirupa.com/t/circle-preloader/19533/12 "2003-04-30T02:59:51Z")

</div>

Could’nt run it. I thought i would be able to view mac’s FLA files ☹

sorry ☹

---

<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: [April 30, 2003, 3:03am UTC](https://forum.kirupa.com/t/circle-preloader/19533/13 "2003-04-30T03:03:43Z")

</div>

But ,

Did you open in your email?

I can try to send it again and encoding for Windows:)

---

<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: [April 30, 2003, 3:09am UTC](https://forum.kirupa.com/t/circle-preloader/19533/14 "2003-04-30T03:09:22Z")

</div>

that should help…

but… you said

> I did a streaming play , and what happen was that the circle disapear and  
> then after a while it apears and dont even makes the rotation…

I´ve put a video on the 2 frame of the \_root timeline…  
Strange , cos the code seems ok…

…and then…

> Yes, i have the contents on the root timeline… on frame 2  
> on frame 1 i have the preloader and the code that you gave me…  
> I’m kind of confused 🙂

---

<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: [April 30, 2003, 3:15am UTC](https://forum.kirupa.com/t/circle-preloader/19533/15 "2003-04-30T03:15:41Z")

</div>

ok,

check your email, i´ve just send it 🙂

I deleted everything that was on second frame, so you can put whatever you want:)

---

<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: [April 30, 2003, 3:38am UTC](https://forum.kirupa.com/t/circle-preloader/19533/16 "2003-04-30T03:38:10Z")

</div>

oh \*\*\*\*!!!  
silly me!

the lines

```auto
bloaded = _root.getBytesLoaded
toLoad = _root.getBytesTotal

```

should be

```auto
bloaded = _root.getBytesLoaded()
toLoad = _root.getBytesTotal()

```

If you’re on a not-so-fast connection, tell me whether this example works here 🙂

[http://24.141.60.208/pre1.html](http://24.141.60.208/pre1.html)

---

<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: [April 30, 2003, 3:43am UTC](https://forum.kirupa.com/t/circle-preloader/19533/17 "2003-04-30T03:43:39Z")

</div>

Great 🙂

thanks,

I just saw the link you post , and that´s exactly what i was looking,  
besides that circle was a \*\*\*\* , but that was only an example:sure:

So, did the file that i´ve email you, was ok?  
with the right extension?

---

<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: [April 30, 2003, 3:45am UTC](https://forum.kirupa.com/t/circle-preloader/19533/18 "2003-04-30T03:45:48Z")

</div>

yeah, it worked fine…

sorry it took so long to get this working, could’ve taken way less time eh 🙂

---

<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: [April 30, 2003, 3:55am UTC](https://forum.kirupa.com/t/circle-preloader/19533/19 "2003-04-30T03:55:42Z")

</div>

no problem:)

thanks again,

i´ve put you in my buddy list…😏

See you.
