forked from: Flex4のレイアウト練習
forked from Flex4のレイアウト練習 (diff: 1)
ActionScript3 source code
/**
* Copyright nayu ( http://wonderfl.net/user/nayu )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/bASF
*/
<?xml version="1.0" encoding="utf-8"?>
<!-- forked from ashitaka's Flex4のレイアウト練習 -->
<s:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark">
<!-- verticalCenter,HorizontalCenterで中央に表示 -->
<s:Panel
title="Panel"
verticalCenter="0"
horizontalCenter="0">
<!-- レイアウトはlayoutタグで設定 -->
<s:layout>
<s:VerticalLayout
gap="10"
horizontalAlign="center"
paddingTop="10"
paddingLeft="10"
paddingRight="10"/>
</s:layout>
<s:Label text="Label"/>
<s:TextInput text="Text Input"/>
<s:Button label="Button"/>
</s:Panel>
</s:Application>