MXMLサンプル(spark)

by keiso
♥5 | Line 42 | Modified 2011-08-06 14:31:41 | MIT License
play

ActionScript3 source code

/**
 * Copyright keiso ( http://wonderfl.net/user/keiso )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/7luQ
 */

<?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" width="465" height="465">
    <s:layout>
        <s:VerticalLayout horizontalAlign="center" paddingTop="10"/>
    </s:layout>
    <fx:Script>
        <![CDATA[
            import mx.controls.Alert;

            private function onClick():void {
                mx.controls.Alert.show("Hello World!");
            }
        ]]>
    </fx:Script>
    <s:VGroup horizontalAlign="center">
        <s:Label text="ラベル"/>
        <s:Button label="ボタン" click="onClick()"/>
        <s:CheckBox label="チェックボックス"/>
        <s:DropDownList >
        <mx:ArrayCollection>
            <fx:String>Apple</fx:String>
            <fx:String>Orange</fx:String>
            <fx:String>Banana</fx:String>
            <fx:String>Grape</fx:String>
            <fx:String>Peach</fx:String>
        </mx:ArrayCollection>
        </s:DropDownList>
        <s:HScrollBar />
        <s:HSlider />
        <s:NumericStepper />
        <s:RadioButton label="ラジオ"/>
        <s:RichEditableText text="RichEditableText"/>
        <s:RichText text="RichText"/>
        <s:Spinner />
        <s:HGroup>
            <s:TextArea width="139" height="96"/>
            <s:VScrollBar />
            <s:VSlider />
        </s:HGroup>
        <s:TextInput />
        <s:ToggleButton label="トグルボタン"/>
    </s:VGroup>

</s:Application>

Forked