Core Java| JSP| Servlets| XML| EJB| JEE5| Web Services| J2ME| Glossary| Questions?

 

 

 

 

 

 

 

 

 

 

 

 

 

Search Tutorials

Latest Questions
Comments
 
Flex Combo Box example 
 

The following code demonstrates the ComboBox Control working example. This Control shows the drop-down list of data you passed as String inside it.

 

Flex Combo Box example

                         

In this tutorial page you will be taught to utilize ComboBox control inside your flex file. In the example you will learn to build two ComboBox controls. The Example below shows combo boxes with nicely formatted string data, so here you will be also taught to do the graphical works on flex visual component. 

The following code demonstrates the ComboBox control working example. This control shows the drop-down list of data you passed as String inside it.

 combo.mxml

<?xml version = '1.0' encoding = 'utf-8'?>
<mx:Application xmlns:mx = 'http://www.adobe.com/2006/mxml'>
  <mx:Panel title = 'Megara (Hercules)' width = '70%
            height = '40%' color = '#FFFFCF'>
    <mx:Canvas backgroundColor = '#CCCCFC' width = 
                  '100%' height = '100%'>

      <mx:ComboBox color = 'red'>
        <mx:dataProvider>
          <mx:Array>
            <mx:String> Neo/ Thomas Anderson 
                </mx:String>
            <mx:String> Trinity/ Carrie-Anne Moss
                 </mx:String>
            <mx:String> Eve/ Rachel Weisz 
                </mx:String>
          </mx:Array>
        </mx:dataProvider>
        </mx:ComboBox>


      <mx:ComboBox x = '200' color = 'green'> 
        <mx:dataProvider>
          <mx:Array>
            <mx:String> Snow White - Adriana Caselotti
                 </mx:String>
            <mx:String> Aurora - Mary Costa </mx:String>
            <mx:String> Ariel - Jodi Benson </mx:String>
          </mx:Array>
        </mx:dataProvider>
      </mx:ComboBox>
  
    </mx:Canvas>
  </mx:Panel>

</mx:Application>

 

combo.swf

 

Download the code

                         

» View all related tutorials
Related Tags:

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

1 comments so far (
post your own) View All Comments Latest 10 Comments:

what does the x attribute do in the combo box tag

Posted by Sandeep Arneja on Friday, 11.14.08 @ 16:20pm | #81682

Training Courses
Tell A Friend
Your Friend Name
Software Solutions
Least Viewed
Most Rated
Recently Viewed
Search Tutorials

 

 
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Indian Software Development Company | iPhone Development Company in India | Flex Development Company in India | Java Training Delhi | Java Training at Noida |

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2008. All rights reserved.