Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * ...
- * @author S******************
- */
- import flash.display.Sprite;
- import flash.Lib;
- class Main extends Sprite
- {
- static function main() {
- Lib.current.addChild(new Main());
- }
- public function new()
- {
- super();
- arrayHandler();
- }
- public function arrayHandler() {
- var array:Array<Array<Map>>;
- array = new Array<Array<Map>>();
- for (i in 0...10) {
- for (j in 0...10) {
- array[i].push(new Map(20*j, i*20));
- }
- }
- for (i in 0...10) {
- for (j in 0...10) {
- Lib.current.addChild(array[i][j]);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement