flash on 2009-9-8
♥0 |
Line 33 |
Modified 2009-09-08 00:38:59 |
MIT License
archived:2017-03-30 09:41:57
ActionScript3 source code
/**
* Copyright hacker_9p8x8mco ( http://wonderfl.net/user/hacker_9p8x8mco )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/l7GR
*/
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
backgroundGradientColors="[0xCCCCCC, 0x66CCFF]"
backgroundColor="0xCCCCCC"
horizontalAlign="center" verticalAlign="center"
applicationComplete="appComplete();">
<mx:Script>
<![CDATA[
// Event handlers for the components.
private function appComplete():void {
myTA.text+="Application creation complete" + "\n";
}
private function panelCreationComplete():void {
myTA.text+="Panel creation complete" + "\n";
}
private function textAreaCreationComplete():void {
myTA.text+="\n" + "TextArea creation complete" + "\n";
}
]]>
</mx:Script>
<mx:ApplicationControlBar dock="true">
<mx:Button label="Set Solid Fill"
click="this.setStyle('backgroundGradientColors', [0xCCCCCC, 0xCCCCCC]);"/>
<mx:Button label="Set Gradient Fill"
click="this.setStyle('backgroundGradientColors', [0xCCCCCC, 0x66CCFF]);"/>
</mx:ApplicationControlBar>
<mx:Panel title="Application Container Example" backgroundColor="0x9CB0BA"
width="75%" height="75%"
creationComplete="panelCreationComplete();">
<mx:TextArea id="myTA" height="100%" width="100%"
text="Event order: "
creationComplete="textAreaCreationComplete();"/>
</mx:Panel>
</mx:Application>