# Fractional Number - setProperty help \[f8\]

**URL:** <https://forum.kirupa.com/t/fractional-number-setproperty-help-f8/222248>\
**Category:** flash\
**Created:** [April 11, 2007, 10:44pm UTC](https://forum.kirupa.com/t/fractional-number-setproperty-help-f8/222248 "2007-04-11T22:44:35Z")\
**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:** [April 11, 2007, 10:44pm UTC](https://forum.kirupa.com/t/fractional-number-setproperty-help-f8/222248/1 "2007-04-11T22:44:35Z")

</div>

Hello all,

How would I get this to work not on the \_root. ? I’ve got it one MC in off the \_root. i tried \_parent. and other things like this… No luck. ☹

```auto

this.onLoad = function() {
    a = 1;
    //duration = 1;
    //Use a fractional number to
    //cut the duration:
    duration = 0.92;
    maxang = 60;
    speed = 1;
}
this.onEnterFrame = function() {
    setProperty(_root.chandelier, _rotation, (((Math.sin (speed*a))*(Math.pow (duration, a ))))*maxang);
    a = a+0.1;
}

```
