forked from: flash on 2013-2-1

by hacker_zxh9vkwz forked from flash on 2013-2-1 (diff: 21)
♥0 | Line 24 | Modified 2013-02-01 12:52:22 | MIT License
play

ActionScript3 source code

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

// forked from hacker_zxh9vkwz's flash on 2013-2-1
package {
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            
            var length_TextField:TextField = new TextField();
            length_TextField.type = TextFieldType.INPUT;
            length_TextField.restrict = "0-9";
            length_TextField.text = "10";
            length_TextField.border = true;
            length_TextField.background = true;
            length_TextField.width = 80;
        
            addChild(length_TextField);
            
            var moto:Array=["23","32","54","31"];
           var ato:Array=[];
           var i:uint=moto.length;
          for(i;i>0;i--){
           var ran:uint=Math.floor(Math.randam()*i);
        ato.push(moto[i]);
         moto.splice(i,1);
            length_TextField=moto;
        }
    }
}






}

Forked