flash on 2009-10-1

by shinseki09
♥0 | Line 28 | Modified 2009-10-01 22:12:18 | MIT License
play

ActionScript3 source code

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

<?xml version="1.0" encoding="UTF-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    applicationComplete="init()">
    <mx:Script>
        <![CDATA[
            import mx.containers.Panel;
            import mx.controls.*;
            
            private function init():void {
                var panel:Panel = new Panel();
                panel.title = "Hello Flex!!";
                panel.setStyle("paddingTop", 10);
                panel.setStyle("paddingLeft", 10);
                panel.setStyle("paddingBottom", 10);
                panel.setStyle("paddingRight", 10);
                addChild(panel);

                var label1:Label = new Label();
                label1.text = "ラベル";
                panel.addChild(label1);

                var text1:TextInput = new TextInput();
                text1.text = "text";
                panel.addChild(text1);

                var button1:Button = new Button();
                button1.label = "OK";
                panel.addChild(button1);
            }
        ]]>
    </mx:Script>
</mx:Application>