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

??の代わり?

Get Adobe Flash player
by esukei 15 Oct 2009
    Embed
/**
 * Copyright esukei ( http://wonderfl.net/user/esukei )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/6iB3
 */

package {
    import flash.display.Sprite;
    import flash.text.TextField;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            var textField:TextField = new TextField();
            textField.width = stage.stageWidth;
            textField.height = stage.stageHeight;
            textField.text = '';
            textField.multiline = true;
            textField.wordWrap = true;
            addChild(textField);
            
            textField.appendText( hoge() );
            textField.appendText('\n');
            textField.appendText( hoge('nullじゃないよ') );
            
        }
        
        private function hoge(a:String = null):String
        {
            return a || 'nullだよ';
        }
    }
}