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

マスクみたいなやつ

希望に答えて(?)
*
* @see http://tirirenge.undo.jp/?p=1766

(・x・)ノ ピシッ
マスク用ですかね
Get Adobe Flash player
by pippo 08 May 2009
// forked from paq's ぽこぽこ!RainbowColorの七宝模様
// forked from ahchang's forked from: RainbowColorの七宝模様
// forked from ahchang's RainbowColorの七宝模様
// forked from ahchang's flash on 2009-5-1 RandomColorなCircleを並べてみた
/*
 * 希望に答えて(?)
 *
 * @see http://tirirenge.undo.jp/?p=1766
*/

/*
(・x・)ノ ピシッ
マスク用ですかね
*/

package {
    import flash.display.Sprite;
    
    [SWF(width=465, height=465, frameRate=30, backgroundColor=0xffffff)]
    
    public class Mask extends Sprite {
        private var cx:int;
        private var cy:int;
        private var r:int=31;
        
        public function Mask() {
            init();
        }
        
        private function init():void {
            for (var i:uint=0; i<15; i++) {
                cx = i * r;
                
                for (var j:uint=0; j<15; j++) {
                    cy = j * r;
                    var rect:Sprite = new Rect(cx, cy, r);
                    addChild(rect);
                }
            }
        }
    }
}


import flash.display.Sprite;
import caurina.transitions.Tweener;

class Rect extends Sprite {
    
    public function Rect(x:int, y:int, r:uint=31) {         
         this.graphics.beginFill(0x000000);
         this.graphics.drawRect(0, 0, r, r);
         this.graphics.endFill();
         this.scaleX = 0;
         this.scaleY = 0;
         this.x = x;
         this.y = y;
         Tweener.addTween(this, {scaleY:1, scaleX:1, time:0.5, delay:(x+y+x+x)/600, transition:"linear"});
    }
}