combobox open and close on button rollOver

In combobox class there are methods like open() and close(), so we can use these methods to open the combobox list and close the combobox list.Here iam doing it on button rollOver.

<mx:ComboBox id="comboBox"
            openDuration="2000"
            closeDuration="1000">
        <mx:dataProvider>
            <mx:Array>
                <mx:Object label="one" />
                <mx:Object label="two" />
                <mx:Object label="three" />
                <mx:Object label="four" />
                <mx:Object label="five" />
                <mx:Object label="six" />
            </mx:Array>
        </mx:dataProvider>
    </mx:ComboBox>
<mx:Button label="open"
                rollOver="comboBox.open();"  -- combobox class method open()
enabled="false" />
        <mx:Button label="close"
                rollOver="comboBox.close();"  -- combobox class method open()  
              enabled="false" /> 



					
Advertisements

2 Responses to combobox open and close on button rollOver

  1. Can you please explain, when rollover event dispatched?

    I am trying to get difference between it and MouseOver event.

    Actually, what I am trying to do is make item highlighted only when mouse is over the element

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: