Login

    Register

Managed Hosting

PROJECT CATEGORIES

 

Compound CSS for Flex
Project Home Blog Known Issues External Project Link Contact Project

Author: Radek Gruchalski (All RIAForge projects by this author)
Last Updated: May 21, 2008 3:29 PM
Version: 1.0
Views: 31,199
Downloads: 4,467
License: MIT

Description:

In HTML it is quite obvious to use compound CSS styles for tags. You just declare class attribute with class names separated by space, for example: <p class=”bold orange”>. Flex presents similar attribute for defining CSS classes for its tags. The attribute is styleName declared by mx.styles.IStyleClient and its available for most controls (if not all of them) which are inheriting from mx.core.UIComponent. One big disadvantage of Flex CSS model is that it doesn’t support compound CSS definitions for now. Actually you can declare something like <mx:Text styleName=”noPadding orange”> but only first class name will be applied - orange class will not be used. With CompoundCSSStyleDeclaration class you may now do what you need!

Requirements:

The project was built with Flex 3 Beta 2 and tested only ith this version.

Issue Tracker:

ID ISSUE STATUS UPDATED
1 How do you include this on your current project? Open 04/24/09 2:35 AM

View All Issues

To enter issues for this (or any other) project, you must be logged in.