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 = getPercent100;
this.Percentage = Math.round(getPercent100)+"%";
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/