Conversion of as2 code into as3
_root.attachMovie("brush","brush",10)
_root.brush.onEnterFrame=function()
{
Mouse.hide()
startDrag(this,true)
new Color (this.brushColor).setRGB(_root.brushColor)
}
//////
onClipEvent (load) {
myColor = 0x000000
new Color(this).setRGB(myColor);
}
on (release) {
_root.brushColor= myColor;
}
////
on(press)
{
new Color(this).setRGB(_root.brushColor)
}
