forked from: flash on 2009-11-26
♥0 |
Line 15 |
Modified 2014-08-24 22:58:06 |
MIT License
archived:2017-03-20 10:07:30
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/ioA1
*/
// forked from 4dam's flash on 2009-11-26
package {
import flash.events.Event;
import flash.display.*;
[SWF(width=465, height=465, backgroundColor=0x000000, frameRate=100)]
public class FlashTest extends Sprite {
public var noiseValue:int = 10000;
public function FlashTest() {
var bitmap:BitmapData = new BitmapData(465, 465, false, 0);
addChild(new Bitmap(bitmap))
addEventListener(Event.ENTER_FRAME, function (event:Event):void {
bitmap.noise(Math.random() * noiseValue)
});
}
}
}