Change background color of a movie clip

Hi everyone:

I’m not new to programming, but I’m fairly new to Flash & ActionScript. Here’s my dilemma. I have a movie clip symbol that is linked to the Ball class. I need to change the color of the background fill for this movie clip. Someone on this forum suggested moving the fill to a nested movie clip and using ColorTransform on it, but I can’t make it to work.

Can someone tell me what am I not doing right?

So far, I have this:

package
{
    import flash.display.MovieClip;
    import flash.geom.ColorTransform;
    
    public class Ball extends MovieClip
    {
        function Ball(color:uint):void
        {
            var colorTransform:ColorTransform = this.transform.colorTransform;
            colorTransform.color = color;
            this.transform.colorTransform = colorTransform;
        }
    }
}

and from the main time line:

var ball:Ball = new Ball(0xff0000);
addChild(ball);