Tweetcoding 向けのテンプレート forked from: Tweetcoding 向けのテンプレート
- // forked from mtok's Tweetcoding 向けのテンプレート
- /*
- *TweetCoding site
- http://tweetcoding.machine501.com/
- *Description
- http://gskinner.com/playpen/tweetcoding.html
- *Rules
- you cannot modify the "gimme" code.
- your entry must be submittable as a single 140 character tweet.
- no additional assets.
- AS3 strict mode should be off, targeting player 10.
- anyone should be able to compile your entry with just your tweet, Flash CS4, and these
- ルール
- 1.gimmeコードは変更できません
- 2.twitterで送信可能な140文字以内でコードを書くこと。
- 3.strictモードはオフ プレーヤのターゲットは10とする。
- ※注wonderflはstrictモードをオフできないので
- strictモードをオフする必要がある場合はコピペしてローカルで使ってね。
- というか、ほとんどそうだろうけど。
- http://www.kelvinluck.com/assets/tweetcoding/
- */
- package
- {
- import flash.display.Graphics;
- import flash.display.Sprite;
- import flash.events.Event;
- public class Main extends Sprite
- {
- public function Main():void
- {
- addEventListener(Event.ADDED_TO_STAGE, addedToStageHandler);
- }
- private function addedToStageHandler(e:Event):void
- {
- var g:Graphics = graphics;
- var mt:Function = g.moveTo;
- var lt:Function = g.lineTo;
- var ls:Function = g.lineStyle;
- var m:Class = Math;
- var r:Function = Math.random;
- var s:Function = Math.sin;
- var i:int = 0; //frame counter
- var o:* = { }; //store persistent data
- addEventListener(Event.ENTER_FRAME, function():void {
- //Put your own code
- } );
- }
- }
- }
notice: 
