flash on 2010-2-9
♥0 |
Line 22 |
Modified 2010-02-09 11:26:13 |
MIT License
archived:2017-03-20 06:30:43
ActionScript3 source code
/**
* Copyright akisute ( http://wonderfl.net/user/akisute )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/nfKo
*/
package {
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
var test:Sprite = new Sprite();
test.graphics.beginFill(0xFF0000);
test.graphics.drawRect(100,100,2,2);
test.graphics.endFill();
this.addChild(test);
for (var x:int=0; x<this.stage.stageWidth; x++) {
for (var y:int=0; y<this.stage.stageHeight; y++) {
if (Math.random() > 0.4) {
test.graphics.beginFill(0xFF0000);
test.graphics.drawRect(x,y,1,1);
test.graphics.endFill();
} else {
}
}
}
}
}
}