all groups > flash actionscript > december 2004 >
You're in the

flash actionscript

group:

Component: Color Parameter


Component: Color Parameter TrainGuy
12/27/2004 9:27:50 PM
flash actionscript:
I am writing a component in ActioScript 2.0 that has a color object parameter.
COuld someone tell me how you would write this so that the color picker is
displayed in the Value field of the component definition? I have attached the
code that I am using. Thanks

[Inspectable (defaultValue=0xD5CCBB,type=Color, verbose=1,category="Other")]
function set dialogColor(newColor:Color):Void{
_dialogColor = newColor;
}
function get dialogColor():Color{
return dialogColor;
}
Re: Component: Color Parameter juankpro
12/27/2004 9:36:07 PM
AddThis Social Bookmark Button