trace("自分用")
forked from Arrayを走査するfor eachを信じたくて (diff: 113)
trace("自分用")
ActionScript3 source code
/**
* Copyright kaikoga ( http://wonderfl.net/user/kaikoga )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/u3pm
*/
package {
import flash.display.Sprite;
import flash.text.TextField;
import flash.text.TextFormat;
public class FlashTest extends Sprite {
private var v:Array = [];
public function FlashTest() {
trace("Hello world!");
}
private var _traceField:TextField;
public function trace(...message):void {
if (!this._traceField) {
this._traceField = new TextField();
this._traceField.width = this.stage.stageWidth;
this._traceField.height = this.stage.stageHeight;
this._traceField.defaultTextFormat = new TextFormat("_typewriter", 10);
this.addChild(this._traceField);
}
this._traceField.appendText(message.join(" ") + "\n");
}
}
}
