Object.init() ?

by bkzen
質問 : Object.init(); ってメソッドは何ですか?
*        何に使うんでしょうか?
*
♥2 | Line 17 | Modified 2009-05-20 05:17:43 | MIT License
play

ActionScript3 source code

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

/**
 *
 * 質問 : Object.init(); ってメソッドは何ですか?
 *        何に使うんでしょうか?
 *
 */
package {
    import flash.display.Sprite;
    import flash.text.TextField;
    
    public class FlashTest extends Sprite {
        public function FlashTest() {
            var txt: TextField = new TextField();
            txt.width = txt.height = 465;
            addChild(txt);
            txt.text  = "" + init + " 何このメソッド?\n";
            txt.appendText("" + Object.init + " 何?\n");
            txt.appendText("" + init() + " 何??\n");
            txt.appendText("" + Object.init() + " 何につかうの???\n");
            txt.appendText("" + length + " なに?\n");
            txt.appendText("" + Object.length + " What?");
        }
    }
}

Forked