<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" >
<mx:Panel x="110" y="152" width="416" height="300" layout="absolute">
<mx:Label x="86" y="56" text="Label" width="214" height="54"/>
<mx:Button x="174" y="158" label="Button"/>
</mx:Panel>
<mx:Script>
<![CDATA[
import mx.styles.StyleManager;
private function loadStyles(name:String):void{
StyleManager.loadStyleDeclarations(name);
}
]]>
</mx:Script>
<mx:RadioButton x="139" y="95" label="red" width="122" click="loadStyles('red_styles.swf')"/>
<mx:RadioButton x="361" y="95" label="greed" click="loadStyles('green_styles.swf')"/>
</mx:Application>
css:1
Panel{
background-color:#006000;
border-color:green;
color:white;
}
css:2
Panel{
background-color:#600000;
border-color:red;
color:white;
}