PDA

View Full Version : Simple ColorPicker in Flash 8



gvozden
December 13th, 2006, 03:44 PM
I’ve recently build some interesting application for generating random points and other mathematical stuff. I’ve needed simple colorpicker so user can select colors for those randomly created nodes and lines and points.
You can find download of a simple example how I done it, it’s nothing special and it can be improved to show color you are over ans so on…
SWF Example (http://www.primatron.co.yu/as/colorpicker/color_picker.swf)
FLA File (http://www.primatron.co.yu/as/colorpicker/color_picker.swf)




blog post:http://mrsteel.wordpress.com/2006/12/13/making-simple-color-picker-in-flash-8/

Stratification
December 13th, 2006, 03:55 PM
Pretty slick, and it does it's job. It does seem to have one limitation though, it only lets you make colors darker, not lighter. Nice though.

gvozden
December 13th, 2006, 03:58 PM
yeah, you can put whatever bitmap you want instead of this I've picked from Photoshop
when you open Fla you will see bitmap which anyone can replace and use his own

joakimlinden
December 13th, 2006, 07:23 PM
A good feature might be to set an interval while the mousebutton is pressed down, that causes the sampler to update the colorswatch continuously. When you release the button, that's the color you've selected.

Nice simple idea with a bitmap.

zellers
December 14th, 2006, 04:09 PM
I've been looking for how to make a color picker for awhile. I was creating something with Flashes Drawing API, and would like to be able to have the user have an input on which color is drawn. I hope you don't mind if I partially use your source.

gvozden
December 14th, 2006, 05:32 PM
it's completly open source :) also you are welcome to improve it and post it here