9/14/2010 12:27:10 AM
Title:
combobox in flex3
hi everyone,
i have a comboBox tht shows a promt msg, if u select any item from the dropdown , the selected item shud be added to the prompt msg. i.e) promtMsg (selectedItem) shud be shown always in the combobox. i m doing it for air application using Flex3.
thanks in advance
Nicky.
9/14/2010 2:08:41 AM
checkout is this u require...
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
[Bindable]
private var dat:Array = new Array('hello', 'hi', 'bye');
private function handleChange():void{
var alert:Alert = Alert.show('Your prompt mesg '+comb.selectedLabel,'Message');
}
]]>
</mx:Script>
<mx:ComboBox id="comb" dataProvider="{dat}" prompt="Select" change="handleChange()"/>
</mx:WindowedApplication>
9/15/2010 1:12:17 AM
hi,
thanks for the reply, i want to display ,as per ur example if i select hello from dropdown comboBox shud display the prompt msg i.e) Select (hello), or Select (hi).. something like tht. anyways i tried it with popUp of nativeMenu...just have to add icons to tht menu thru actionScript...any help with icons will be appreciated.
thanks in advance.
nicky