forked from: flash on 2009-9-24
♥0 |
Line 21 |
Modified 2015-09-02 22:29:04 |
MIT License
archived:2017-03-20 10:06:07
ActionScript3 source code
/**
* Copyright bambula.filip1 ( http://wonderfl.net/user/bambula.filip1 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/qjUQ
*/
// forked from UA_'s flash on 2009-9-24
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);
}
}
}
}