flash on 2009-9-24
/**
* Copyright UA_ ( http://wonderfl.net/user/UA_ )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/rLaZ
*/
package {
import flash.display.Sprite;
import flash.events.Event;
import flash.display.Bitmap;
import flash.display.BitmapData;
public class FlashTest extends Sprite {
var mySprite:Sprite = new Sprite();
var myBitmapData:BitmapData;
var myBitmap:Bitmap;
public function FlashTest() {
myBitmapData = new BitmapData(400,400,false,0x000000);
myBitmap = new Bitmap(myBitmapData);
addChild(myBitmap);
stage.addEventListener(Event.ENTER_FRAME,onFrame);
function onFrame(event:Event):void {
var seed:uint = Math.floor(Math.random() * 100);
myBitmapData.noise(seed,0,255,7,true);
}
}
}
}