# f8 - added a preloader now as animation not working

**URL:** <https://forum.kirupa.com/t/f8-added-a-preloader-now-as-animation-not-working/224820>\
**Category:** Uncategorized\
**Created:** [May 5, 2007, 10:26pm UTC](https://forum.kirupa.com/t/f8-added-a-preloader-now-as-animation-not-working/224820 "2007-05-05T22:26:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dr\_Abner\_Mellon](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@Dr\_Abner\_Mellon](https://forum.kirupa.com/u/Dr_Abner_Mellon)\
**Post date:** [May 5, 2007, 10:26pm UTC](https://forum.kirupa.com/t/f8-added-a-preloader-now-as-animation-not-working/224820/1 "2007-05-05T22:26:30Z")

</div>

Any idea why this wouldn’t work once a preloader is added to scene before content?  
this.onLoad = function() {  
a = 1;  
//duration = 1;  
//Use a fractional number to  
//cut the duration:  
duration = 0.92;  
maxang = 30;  
speed = 1;  
}  
this.onEnterFrame = function() {  
setProperty(\_root.content.chandelier, \_rotation, (((Math.sin (speed_a))_(Math.pow (duration, a ))))\*maxang);  
a = a+0.1;  
}
