flash on 2010-6-8
♥0 |
Line 21 |
Modified 2010-06-08 05:31:45 |
MIT License
archived:2017-03-10 09:15:47
ActionScript3 source code
/**
* Copyright kihon ( http://wonderfl.net/user/kihon )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/oSM5
*/
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" creationComplete="creationCompleteHandler(event)">
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
protected function creationCompleteHandler(event:FlexEvent):void
{
var manager:IStyleManager2 = StyleManager.getStyleManager(null);
var s:CSSStyleDeclaration = manager.getStyleDeclaration("spark.components.Button");
s.setStyle("color", 0xED1A3D);
s.setStyle("fontSize", 50);
}
]]>
</fx:Script>
<s:VGroup x="100" y="100">
<s:Button label="ButtonA"/>
<s:Button label="ButtonB"/>
</s:VGroup>
</s:Application>