Return to Snippet

Revision: 28252
at July 5, 2010 23:16 by sidneydekoning


Initial Code
var tvStatic:MovieClip = new MovieClip();
addChild(tvStatic);

var bmpData:BitmapData = new BitmapData(320,240);
var bmp:Bitmap = new Bitmap(bmpData);

tvStatic.addChild(bmp);


addEventListener(Event.ENTER_FRAME,generateStatic, false, 0, true);

private function generateStatic(e:Event){
   bmpData.noise(Math.floor(100000*Math.random()), 0, 255,0, true);
}

Initial URL

                                

Initial Description
Generate snow, like on a TV set.

Initial Title
Generate TV static in AS3

Initial Tags

                                

Initial Language
ActionScript 3