Цитата:
 Код AS3:
public function createplatform():void
{
for (var i:uint=0; i<platform.length; i++)
{
for (var j:uint=0; j<platform[i].length; j++)
{
if (platform[i][j] > 0)
{
platforma = new Platforming;
platforma.width = platforma_width;
platforma.height = platforma_height;
platforma.x = j * size - 750;
platforma.y = i * size + 135;
platforma.gotoAndStop(platform[i][j]);
platformobj.push(platforma);
addChild(platforma);
}
}
|
А вы для каждого элемента platform[i] создаете ли массив, чтобы platform[i][j] содержало ссылку?