Circle preloader

Hello there,

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

Thanks

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

have this script on the root timeline:


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

:slight_smile:

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

oh… i was assuming you had the contents on the root timeline. can you zip the fla and attach it? :slight_smile:

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.

Hmm… email it to me

swf_builder at yahoo dot com

I’ll have a look :slight_smile:

??

What is your email??

swf_builder@yahoo.com ??

yeah… :sleep:

ok
i just send it

Did you already check the file?

Ahmed

Get back to me

thanks.

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

sorry :frowning:

But ,

Did you open in your email?

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

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 :slight_smile:

ok,

check your email, i´ve just send it :slight_smile:

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

oh ****!!!
silly me!

the lines

bloaded = _root.getBytesLoaded
toLoad = _root.getBytesTotal

should be

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

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

http://24.141.60.208/pre1.html

Great :slight_smile:

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?

yeah, it worked fine…

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

no problem:)

thanks again,

i´ve put you in my buddy list…:smirk:

See you.