onLoad Function prob. [f8] in mc not root

I’m a little lost… I’m very new to flash and I some help :slight_smile: I can’t figure out what little thing I’m missing to make this work if its not on the root. It’s only 1 MC inside…

Below is the script I using :slight_smile:

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;
}