# Need help with ((sephiroth's color picker component) + (as & oop))

**URL:** <https://forum.kirupa.com/t/need-help-with-sephiroths-color-picker-component-as-oop/244993>\
**Category:** Uncategorized\
**Created:** [November 24, 2007, 10:18pm UTC](https://forum.kirupa.com/t/need-help-with-sephiroths-color-picker-component-as-oop/244993 "2007-11-24T22:18:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jansensan](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jansensan/32/3362_2.png) [@jansensan](https://forum.kirupa.com/u/jansensan)\
**Post date:** [November 24, 2007, 10:18pm UTC](https://forum.kirupa.com/t/need-help-with-sephiroths-color-picker-component-as-oop/244993/1 "2007-11-24T22:18:16Z")

</div>

hello

i picked up an open source component from sephiroth.it ([http://www.sephiroth.it/file\_detail.php?id=147](http://www.sephiroth.it/file_detail.php?id=147)) but i do not know how to implmenet it within a class.

my class extends a movie clip. i attach the said movie (which include the color picker component) on the stage. im simply trying to get something to happen when the color is selected, but i dont undersatnd event broadcasters, no matter how much i read about them

```auto

class colorPickerTest {
    // variables
    var picker:MovieClip;
    var pickerListener:Object;
    // constructor
    function colorPickerTest () {
        AsBroadcaster.initialize (this.picker);
        this.pickerListener = new Object();
        this.picker.addListener (this.pickerListener);
        this.pickerListener.change = function (colorPickerObject) {
            trace ("color has changed");
        }
    }; 
}

```

can anybody help me out here?
