getPixel Question (Screenshot Included)

Hello Guys, Im creating an application which lets you do some minor customization like changing the color.

I have no problems using BitmapData’s getPixel method. Im just wondering if this is possible and how can i do it.

Dragging inside the color map will obviously change the color of the background, the hex value textfield will also change depending on the color the user selected. you can also change the color by manually typing the hex value of the color on the hex value textfield.

THE QUESTION:

how can i make it so when the user manually typed the hex value of the color on the hex value textfield, the “circle” color indicator will reposition itself based on the color selected by the user? a behavior which is common on all adobe softwares specially on the color picker.

Thanks a lot guys and sorry for my bad english ;D