Код: Выделить всё
public function createWall():void { switch (arr) { case 1: var line_1:Sprite = new sprite_ss); line_1.x = 0; line_1.y = 0; addChild(line_1); break; }}
arr({id:0});
Как мне присвоить case 1 - id?