flash on 2009-11-21
♥0 |
Line 18 |
Modified 2009-11-22 00:00:30 |
MIT License
archived:2017-03-20 14:36:04
ActionScript3 source code
/**
* Copyright coppieee ( http://wonderfl.net/user/coppieee )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/8v3T
*/
package {
import flash.display.*;
import flash.events.Event;
import flash.text.TextField;
public class Main extends Sprite {
private static const SIZE:Number = 462;
private var _tf:TextField;
private var _bd:BitmapData;
public function Main() {
_bd = new BitmapData(SIZE,SIZE,false);
addChild(new Bitmap(_bd));
addEventListener(Event.ENTER_FRAME,onEnterFrame);
}
private function onEnterFrame(e:Event):void{
_bd.setPixel(SIZE*Math.random(),SIZE*Math.random(),0xFF);
}
}
}