Adobe flex change dropdownlist basecolor

Adobe flex change dropdownlist basecolor

Postby haretu » Mon Mar 28, 2011 10:01 am

Adobe flex change dropdownlist basecolor

Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<s:Application name="Spark_DropDownList_baseColor_test"
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/halo">

    <mx:ApplicationControlBar width="100%" cornerRadius="0">
        <mx:Form styleName="plain">
            <mx:FormItem label="baseColor:">
                <mx:ColorPicker id="colorPicker" selectedColor="#CCCCCC" />
            </mx:FormItem>
        </mx:Form>
    </mx:ApplicationControlBar>

    <s:DropDownList id="dropDownList"
            prompt="Please select a thing..."
            labelField="label"
            baseColor="{colorPicker.selectedColor}"
            horizontalCenter="0"
            top="60">
        <s:dataProvider>
            <s:ArrayList>
                <fx:Object label="One" />
                <fx:Object label="Two" />
                <fx:Object label="Three" />
                <fx:Object label="Four" />
                <fx:Object label="Five" />
                <fx:Object label="Six" />
                <fx:Object label="Seven" />
                <fx:Object label="Eight" />
                <fx:Object label="Nine" />
            </s:ArrayList>
        </s:dataProvider>
    </s:DropDownList>

</s:Application>
Attachments
Screen shot 2011-03-28 at 9.59.37 AM.png
Screen shot 2011-03-28 at 9.59.37 AM.png (16.99 KiB) Viewed 739 times
haretu
 
Posts: 132
Joined: Sat Jan 08, 2011 9:56 pm

Return to Adobe FLEX Flash

Who is online

Users browsing this forum: No registered users and 1 guest

cron