【個人用】 Wonderfl Template
Wonderfl用のテンプレート
基本これをフォークすればいいと思う
♥0 |
Line 27 |
Modified 2010-12-03 15:11:07 |
MIT License
archived:2017-03-20 06:27:01
ActionScript3 source code
/**
* Copyright yooyke ( http://wonderfl.net/user/yooyke )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/veSO
*/
package {
import flash.events.Event;
import flash.display.Sprite;
import flash.text.TextField;
public class FlashTest extends Sprite {
private var tf_:TextField;
public function FlashTest() {
if (stage) init();
else addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(e:Event=null):void {
removeEventListener(Event.ADDED_TO_STAGE, init);
// entry point
debug("Hello World");
}
private function debug(text:String):void {
if (!tf_) {
tf_ = new TextField();
tf_.selectable = false;
tf_.mouseEnabled = false;
tf_.width = stage.stageWidth;
tf_.height = stage.stageHeight;
addChildAt(tf_, 0);
}
tf_.text = text;
}
}
}