# New To Prototypes

**URL:** <https://forum.kirupa.com/t/new-to-prototypes/186293>\
**Category:** flash\
**Created:** [April 20, 2006, 10:47am UTC](https://forum.kirupa.com/t/new-to-prototypes/186293 "2006-04-20T10:47:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ice987](https://avatars.discourse-cdn.com/v4/letter/i/779978/32.png) [@ice987](https://forum.kirupa.com/u/ice987)\
**Post date:** [April 20, 2006, 10:47am UTC](https://forum.kirupa.com/t/new-to-prototypes/186293/1 "2006-04-20T10:47:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![devonair](https://avatars.discourse-cdn.com/v4/letter/d/3be4f8/32.png) [@devonair](https://forum.kirupa.com/u/devonair)\
**Post date:** [April 20, 2006, 3:06pm UTC](https://forum.kirupa.com/t/new-to-prototypes/186293/2 "2006-04-20T15:06:16Z")

</div>

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.
