In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

Object.init() ?

質問 : Object.init(); ってメソッドは何ですか?
*        何に使うんでしょうか?
*
Get Adobe Flash player
by bkzen 20 May 2009
/**
 * 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?");
        }
    }
}