
转载请保持文章完整性!
本文链接地址:http://blog.desizen.com/4lone/551.html
主页:joel's blog
这个例子进行的是Tourdeflex:UI Controls:Other Controls:ColorPicker
简介:
The ColorPicker control provides a way for a user to choose a color from a swatch list. The default mode of the component shows a single swatch in a square button. When the user clicks the swatch button, the swatch panel appears and displays the entire swatch list.
例子:
<?xml version="1.0"?> <!-- Simple example to demonstrate the ColorPicker control. --> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundGradientColors="[0x000000,0x323232]" viewSourceURL="srcview/index.html"> <mx:Panel title="ColorPicker Control Example" height="75%" width="75%" paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10" color="0xffffff" borderAlpha="0.15"> <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> </mx:Application>
标签:ColorPicker, FLEX, TourDeFlex, 例子
