# Preloader question. I keep trying but no luck

**URL:** https://forum.kirupa.com/t/preloader-question-i-keep-trying-but-no-luck/83601
**Category:** flash
**Created:** [March 20, 2005, 3:48pm UTC](https://forum.kirupa.com/t/preloader-question-i-keep-trying-but-no-luck/83601 "2005-03-20T15:48:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Emdiesse](https://avatars.discourse-cdn.com/v4/letter/e/c0e974/32.png) [@Emdiesse](https://forum.kirupa.com/u/Emdiesse)
#### Post date: [March 20, 2005, 3:48pm UTC](https://forum.kirupa.com/t/preloader-question-i-keep-trying-but-no-luck/83601/1 "2005-03-20T15:48:30Z")

</div>

I am trying to create a preloader and i have tried following the tutorial on this site but i am having no luck.

I have a logo that i would like to spin slowely at first, however, as the load percentage goes up i would like it to spin faster and faster. When the movie has loaded i would like the logo to continue spinning at the final rpm.

This is the code i have tried so far, i am a complete n00b at AS, however i did have a go.

**First Frame**  
[actionscript]  
bytes\_loaded = Math.round(this.getBytesLoaded());  
bytes\_total = Math.round(this.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
this.Logo.\_rotation = getPercent_100;  
this.Percentage = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
this.gotoAndPlay(3);  
}  
[/actionscript]

**Second Frame**  
[actionscript]  
this.gotoAndPlay(1);  
[/actionscript]

**Third Frame**  
[actionscript]  
stop();  
[/actionscript]  
**-Logo Movie Clip**  
[actionscript]  
onClipEvent (enterFrame) {  
bytes\_loaded = Math.round(this.getBytesLoaded());  
bytes\_total = Math.round(this.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
this.Logo.\_rotation = getPercent\*100;  
}  
[/actionscript]

What am i doing wrong?

This is an example of my aim:  
[The [url=“http://www.weebls-stuff.com/toons/55/”]preloader of this http://www.weebls-stuff.com/toons/55/](http://www.weebls-stuff.com/toons/55/)
