HSV Colour Selector Component
[Update: A new version of this component (AS2 and AS3) is available in the Razor Component Framework.. check latest posts for details]
Some time ago I had to create an 'Interior design' app where you could pick and drag colours onto a photograph of a room, and it would tint the appropriate section/wall. I decided to include the colour picker component from that project here in the hope that it might be useful to somebody.
It is different to most other colour pickers I have seen in that it doesn't have a large number of buttons over 'swatches', or duplicated movie clips. I suppose you could say that it's pseudo-analog.
I tried to mimic the Flash authoring environment's HSV colour picker and it turned out quite well.
I also converted it into a web designers tool where you can get the hex values of similar colours for your design. Check out the swf below.
Unfortunately it is written in Actionscript 1 because it is quite old, but at least it is self contained. To use it for your own projects, drag the component from the library into your own movie. The assets will be copied into your library automatically. See the actions on the first frame inside the component for usage instructions.
Source file: Colourpicker.fla


September 1st, 2004 at 6:47 pm
Actionscript Color Selector Component
Razorberry shares his color picker app - demo and source code available here. Yes, Flash MX comes with a colorpicker component (and Razor's is in AS1) it's still a nice component that doesn't use swatches (which bothered me too)....
October 19th, 2004 at 5:55 pm
I will post an article about this in the next 2 days or so max..
cheers joe
March 7th, 2006 at 5:48 pm
Hi,
I was wondering if you had some easy way to send a hexadecimal color value to the colour picker and have it position to the right x and y coordinates to represent that colour ?
Merci !
September 1st, 2006 at 7:28 am
Very very useful component for me, 10x a lot for it.
the best component of that kind i find in the net
sory for my bad english.
January 31st, 2007 at 8:46 am
The colour picker shown above is runnable in flash player 6 & 7 since the source code is made using actionscript 1.0. Can we convert the source code to actionscript 2.0 to make it runnable in flash player 8 or if it is already done, can you please forward the source .fla file to the above email-id.
January 31st, 2007 at 11:14 am
I had originally intended to rewrite this, but never got around to it. Feel free to use or change the source code however you wish.