Domanda

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.

È stato utile?

Soluzione 3

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

Altri suggerimenti

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

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top