import mx.controls.Alert;
import mx.styles.StyleManager;
public function applyRuntimeStyleSheet(stylecolor:String):void {
StyleManager.loadStyleDeclarations(stylecolor+".swf",true)
}
]]>
------------------------------------
import mx.effects.Fade;
import mx.core.Application;
import flash.trace.Trace;
import mx.controls.Alert;
private function colorselectionHandler():void
{
var themecolor:String=themechanger.selectedItem as String;
Application.application.applyRuntimeStyleSheet(themecolor);
}
private function readXML():void
{
}
]]>
-----------------------------------
Green.css
Panel {
borderColor: #6666ff;
borderAlpha: 0.21;
roundedBottomCorners: false;
cornerRadius: 9;
headerHeight: 21;
backgroundAlpha: 1;
headerColors: #6666ff, #ff66ff;
footerColors: #6666ff, #ff33cc;
backgroundColor: #ffffff;
shadowDistance: 4;
shadowDirection: left;
dropShadowColor: #33000d;
}
No comments:
Post a Comment