New To Prototypes

Can’t get the following to work. Must be making a simple error. Can someone point it out

Color.prototype.setCol = function (r, g, b) {

trace(“set color”)

}
createEmptyMovieClip(“clip1_mc”,1);
var col:Color=new Color(“clip1_mc”);
col.setCol(10,10,10);

If you’re using mx2004 or higher, the Color class is not dynamic. That is, it can’t be prototyped. If you’d like to add methods or properties, you’ll have to create a custom class. And if you’re using Flash 8, the Color class has been deprecated in favor of the ColorTransform class.