Search Flex Components Free

Custom Search

December 25, 2007

Flex Misc Control ColorPicker Source Code


Flex Sample Source Code:

<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundAlpha="0">

<mx:Label text="Select a color to change the background color of the VBox below"/>

<mx:ColorPicker id="cp" showTextField="true" selectedColor="0xFFFFFF"/>

<mx:VBox width="200" height="200" backgroundColor="{cp.selectedColor}" borderStyle="solid"/>
<mx:Label text="selectedColor: 0x{cp.selectedColor.toString(16)}"/>

</mx:Application>

Related Flex Tutorials