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

 

 

 

 

 

 

 

 

 

 

 

 

 

Search Tutorials:
 

Software Solutions and Services
 

 
  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification
  Java Applet
Questions
Comments
 
Flex Cascading Style Sheets example 
 

Following code demonstrates the use of tag. Style definitions of this tag are implemented on other GUI components like on Button Controls.

 

Flex Cascading Style Sheets example

                         

Following code demonstrates the use of <mx:Style> tag.  Style definitions of this tag are implemented on other GUI components like on Button controls. This implementation is done by using the class selector, here class selector is used with name Alexander.

Like other flex components id attribute, class selector is the id attribute of style tag and acts as its identifier. Under the tag, style statements for the flex components are coded. Further the features defined through the statements are invoked in the components mostly in containers with the styleName property. 
In the example below styles are implemented on flex  Button and Combo box controls.

 

 

 

cascade.mxml

<?xml version = '1.0' encoding = 'utf-8'?>
<mx:Application xmlns:mx = 'http://www.adobe.com/2006/mxml'>
  
  <mx:Style>
    .Alexander {color : green}
    Button {font-size: 10pt}
  </mx:Style>
  
  <mx:Button label = 'Motorist' styleName = 'Alexander'/>
  
  <mx:ComboBox id = 'combo' styleName = 'Alexander'>
    <mx:Button label = 'Teacher'/>
    <mx:Button label = 'Central Park carriage driver'/>
    <mx:Button label = 'Flower store worker'/>
  </mx:ComboBox>
  
</mx:Application>

cascade.swf

Download the code

                         

» View all related tutorials
Related Tags: c gui com class controls ui select button style control io components sed implementation component definition tag name using this

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 
Training Courses
Tell A Friend
Your Friend Name
Website Designing Services
 
Web Designing Packages From $150!
 
Website Designing Company Web Hosting
 
Website Designing Quotation
 
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.