MXMLTest02 Text Area Test

by siouxcitizen forked from MXMLTest01 Hello World (diff: 11)
♥0 | Line 16 | Modified 2009-04-11 22:17:41 | MIT License
play

ActionScript3 source code

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

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"  layout="absolute" width="500" height="300" backgroundColor="#FFFFFF">
    <mx:Script>
        <![CDATA[
            private function testTextArea():void {
               txtData.text = "テストてすとテストてすと2";
            }
        ]]>
    </mx:Script>
    <mx:Button id="btnTest" click="testTextArea();" x="10" y="10" label="ボタン"/>
    <mx:TextArea id="txtData" x="10" y="46" width="363" height="126">
        <mx:text>
            <![CDATA[てすとテストてすとテスト1]]>
        </mx:text>
    </mx:TextArea>
</mx:Application>

Forked