CommandController

by fancyblock
command process
♥0 | Line 20 | Modified 2013-03-10 18:42:27 | MIT License
play

ActionScript3 source code

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

package 
{
    import flash.text.TextField;
    import flash.text.TextFieldType;
    import flash.display.Sprite;
    public class FlashTest extends Sprite 
    {
        protected var m_inputBox:TextField = null;
        
        public function FlashTest() 
        {
            // create the text box
            m_inputBox = new TextField();
            m_inputBox.type = TextFieldType.INPUT;
            m_inputBox.background = true;
            m_inputBox.backgroundColor = 0x000000;
            m_inputBox.textColor = 0xffffff;
            m_inputBox.text = "asdf12345";
            
            this.addChild( m_inputBox );
            
            // write as3 code here..
            
        }
    }
}