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

Blendmode

http://umroom.com/blog/archive/2009/06/111248.html
にあったイベントの挙動を試してみる。
Get Adobe Flash player
by takawo 07 Jul 2009
/**
 * Copyright takawo ( http://wonderfl.net/user/takawo )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/zsZR
 */

package 
{
    //http://umroom.com/blog/archive/2009/06/111248.html
    //にあったイベントの挙動を試してみる。
    
    import flash.display.Sprite;
    import flash.display.BlendMode;
    import flash.display.Graphics;
    import flash.events.Event;
    public class FlashTest extends Sprite {
        private var _sp:Sprite
        public function FlashTest()
        {
            for(var i:uint = 0; i < 100; i++)
            {
            _sp = new Sprite;
            var g:Graphics = _sp.graphics;
            g.clear();
            _sp.blendMode = BlendMode.DARKEN;
            
            var r:Number= Math.floor(Math.random()*90);
            g.beginFill(Math.random()*0xFFFFFF)
            g.drawCircle(0,0,r)
            g.endFill();
            addChild(_sp)
            _sp.x = Math.random()*stage.stageWidth -r;
            _sp.y = Math.random()*stage.stageHeight -r;            
            
            
            }
            
             
        }
    }
}