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

forked from: ActionScript 3.0のBitmapクラス、BitmapDataクラスを使う(Thanks to Onegame)

MouseXで青成分
Get Adobe Flash player
by Nicolas 18 May 2009
    Embed
// forked from hsugizak's ActionScript 3.0のBitmapクラス、BitmapDataクラスを使う(Thanks to Onegame)
//MouseXで青成分
package {
    import flash.display.Sprite;
    import flash.events.*;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            import flash.display.*;
            var bitmap:Bitmap;
            var bitmapData:BitmapData;
            var k:int = 0;
        
            bitmapData = new BitmapData(256, 256);
            bitmap = new Bitmap(bitmapData);
            addChild(bitmap);
            draw();
            stage.addEventListener(Event.ENTER_FRAME, draw);

            function draw(e:Event=null):void {
                k = mouseX;
                if(k>=0x100) {
                    k = 0;   
                }

                for (var i:int = 0; i < 256; i++) {
                    for (var j:int = 0; j < 256; j++) {
                        bitmapData.setPixel(i, j, 0x010000 * i + 0x000100 * j + 0x000001*k);
                    }
                }
            }
        }
    }
}