<?xml version="1.0"?>
<!-- Simple example to demonstrate the
ColorPicker control. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundGradientAlphas="[1.0, 1.0]"
backgroundGradientColors="[#874040, #874040]">
<mx:Panel title="ColorPicker Control Example" height="272" width="326"
paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10"
color="0xffffff" borderAlpha="0.15" x="10" y="10">
<mx:Label width="100%" color="0x000000"
text="Select the background color
of the VBox container."/>
<mx:ColorPicker id="cp" showTextField="true" selectedColor="0xFFFFFF"/>
<mx:VBox width="100%" height="100%" backgroundColor="{cp.selectedColor}" borderStyle="solid"/>
<mx:Label color="0x000000" text="selectedColor: 0x{cp.selectedColor.toString(16)}"/>
</mx:Panel>
No comments:
Post a Comment