stryker
stryker

Reputation: 149

Customize ColorPicker in Flex

I need to make colorPicker functional without having to click a drop down like this: enter image description here

It should be always open and other standard controls (like textInput to enter color manually) should not be present.

Is there a way to do that?

Thank you.

Upvotes: 0

Views: 450

Answers (3)

Sumit
Sumit

Reputation: 729

You need to implement this using the image of color picker and picking up the color where mouse is clicked. Following link will guide you how to do it. This link has demo with source code too for reference. http://www.codestore.net/store.nsf/unid/BLOG-20110414-0347

Upvotes: 0

csomakk
csomakk

Reputation: 5497

just paste the image of the colorpicker you attached above, add a clicklistener, and based on mouseX, and mouseY of the event, locate the coordinate, and get its color value from the image.

Upvotes: 1

Petr Hrehorovsky
Petr Hrehorovsky

Reputation: 1153

I'd create custom component based on mx.controls.colorPickerClasses.SwatchPanel, which is class used as a drop down in color picker.

Upvotes: 1

Related Questions