flash on 2014-10-23
♥0 |
Line 33 |
Modified 2014-10-23 12:19:34 |
MIT License
archived:2017-03-20 06:56:30
ActionScript3 source code
/**
* Copyright propg ( http://wonderfl.net/user/propg )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/mxcv
*/
<?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"
creationComplete="{OnCreationCompleteHandler(event)}">
<fx:Script>
<![CDATA[
private function OnCreationCompleteHandler(event:Event):void {
}
private function onClickHandler(event:MouseEvent):void {
label.text = "click";
}
]]>
</fx:Script>
<s:Panel
title="計算するテスト"
verticalCenter="0"
horizontalCenter="0">
<!-- レイアウトはlayoutタグで設定 -->
<s:layout>
<s:VerticalLayout
gap="10"
horizontalAlign="center"
paddingTop="10"
paddingLeft="10"
paddingRight="10"/>
</s:layout>
<s:TextInput id="dateFormatText" prompt="format"
text="" width="300" />
<s:Button label="計算" click="onClickHandler(event)"/>
<s:Label id="label" fontSize="16"/>
</s:Panel>
</s:Application>