flash on 2010-5-4

by sinclairc5
♥0 | Line 19 | Modified 2010-05-04 10:03:05 | MIT License
play

ActionScript3 source code

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

package
{
    import flash.display.Sprite;
    import flash.text.TextField;
    
    public class FlashTest extends Sprite
    {
        private var _txt:TextField;
        
        public function FlashTest()
        {
            // write as3 code here..
            _txt = new TextField();
            addChild( _txt );
            this['testing']();
        }
        
        private function testing():void
        {
            _txt.text = 'text success';   
        }
    }
}