01 Mayıs 2010
Posted by admin
ColorPicker DataProvider
You may want user to select some colors, so you must use color picker and dataprovider that has the colors.
Turkish
Color picker ile kullanıcıların bazı renklerini seçmesini isteyebilirsiniz. Bunun için colorpicker içerisine dataprovider göndermeniz gerekir. Bu data provider içinde seçilebilir renkler mevcuttur.
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> <![CDATA[ [Bindable] public var color_picker_DP:Array = ['0x000000', '0xFF0000', '0xFF8800', '0xFFFF00', '0x88FF00', '0x00FF00', '0x00FF88', '0x00FFFF', '0x0088FF', '0x0000FF', '0x8800FF', '0xFF00FF', '0xFFFFFF']; ]]> </mx:Script> <mx:ColorPicker id="cp" dataProvider="{color_picker_DP}"/> </mx:Application>
Demo :




No Comments Yet
You can be the first to comment!
Leave a comment