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

Tic-tac-toe

3目並べ
140文字に収めようとして諦めたやつ。
/**
 * Copyright bkzen ( http://wonderfl.net/user/bkzen )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/aKQP
 */

package {
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            var t:*;addChild(t=new Sprite);with(t.graphics)for(i=9,b=[],scaleX=scaleY=100,r=drawRect,f=beginFill;i--;)r(i%3,i/3|f(lineStyle(a=0),0),1,1);addEventListener("click",function():*{with(t)if(!((b[a]|b[a^1])>>(i=mouseX+(mouseY|0)*3|0)&1))c=~(b[a]|=1<<i),f(255<<a*8),!(c&7&&c&56&&c&448&&c&73&&c&146&&c&292&&c&84&&c&273)?r(0,0,3,3):r(i%3,i/3|0,1,1),a^=1})
        }
    }
}