flash on 2011-1-26
♥0 |
Line 17 |
Modified 2011-01-26 12:38:21 |
MIT License
archived:2017-03-20 11:56:54
ActionScript3 source code
/**
* Copyright kojimajunya ( http://wonderfl.net/user/kojimajunya )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/5BeO
*/
package {
import flash.display.Shape;
import flash.display.Sprite;
public class FlashTest extends Sprite {
private var _objAry:Array = [];
public function FlashTest() {
// write as3 code here..
for( var i:int = 0; i < 100; i++ ) {
var s:Shape = new Shape();
s.graphics.beginFill( 0xFF0000 );
s.graphics.drawRect( 0, 0, 10, 10 );
s.graphics.endFill();
s.x = int( Math.random() * stage.stageWidth );
s.y = int( Math.random() * stage.stageWidth );
}
}
}
}