I often use static variables for creating default styles for my components, these styles then can be overwritten by someone using the component however there will always be my initial stying applied if they arent overwritten.
/***** DEFAULT STYLE DECLARATIONS GO BELOW ***/ private static var STYLES : Boolean = defaultStyles( ); private static function defaultStyles( ) : Boolean { //NO CSS DECLARATIONS var newStyle : CSSStyleDeclaration = new CSSStyleDeclaration( ); if( !StyleManager.getStyleDeclaration( 'yOffSet' ) ) { newStyle.setStyle( 'yOffSet', 30 ); } StyleManager.setStyleDeclaration( 'CustomComponentName', newStyle, true ); return true; }














http://www.tink.ws/blog/styleutilgetdefaultstylename/
might be of interest
Comment by Tink — June 6, 2008 @ 2:34 pm