flash on 2016-10-5

by www0z0k
♥0 | Line 20 | Modified 2016-10-05 18:13:09 | MIT License
play

ActionScript3 source code

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

package {
    import flash.text.TextField;
    import flash.display.MovieClip;
    import flash.display.Sprite;
    import flash.utils.describeType;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            var tst:MovieClip = new MovieClip();
            var tf:TextField = new TextField();
            addChild(tf);
            for(var k:String in this){
                if(this[k] == tst){
                     tf.text += k + '\n';       
                }else{
                    tf.appendText'\t' + k + '\n'; 
                }


            }            
        }
    }
}