Stuck at grabbing cells.
Im doing some grabber/trainer type thing on my own but im stuck at grabbing cells.
The thing im trying to do grab the cells from current map and push the cells into the combo box.
The code used while doing this
The thing im trying to do grab the cells from current map and push the cells into the combo box.
The code used while doing this
Code
TrainerMenu.btnGrab.addEventListener(MouseEvent.CL ICK, Cells);
function Cells(e:MouseEvent):String
{
var cells:Array = [];
for each (var cell:Object in Game.world.map.currentScene.labels)
{
cells.push(menuLoaders.txtCell.text);
}
return cells.join(",");
}
function Cells(e:MouseEvent):String
{
var cells:Array = [];
for each (var cell:Object in Game.world.map.currentScene.labels)
{
cells.push(menuLoaders.txtCell.text);
}
return cells.join(",");
}