Цитата:
Сообщение от undefined
проблема в as3 коде, а не xml.Конкретно в этой строке
 Код AS3:
picLoader.load(new URLRequest(xmlList[i].attributes()[1]));
xmlList[i].attributes()[1] равен null о чем и сообщается
|
Попробовал подставить не цифровое значение, а конкретный атрибут картинки. Написал вот так:

Код AS1/AS2:
picLoader.load(new URLRequest(xmlList[i].attributes("img")));
Вышла вот такая ошибка:

Код:
ArgumentError: Error #1063: Argument count mismatch on XML/http://adobe.com/AS3/2006/builtin::attributes(). Expected 0, got 1.
at album_fla::MainTimeline/getXML()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
Добавлено через 2 минуты
Цитата:
Сообщение от ZergMaster
а что показывает
 Код AS3:
xmlList = xmlData.children();
trace(xmlList);
for (var i:int=0; i<xmlList.length(); i++)
{
trace('xmlList['+i+'].attributes()[1]'+xmlList[i].attributes()[1]);
}
?
|
Вот, что показывает

Код:
xmlList[0].attributes()[1]undefined
xmlList[1].attributes()[1]undefined
xmlList[2].attributes()[1]undefined
xmlList[3].attributes()[1]undefined
xmlList[4].attributes()[1]undefined
xmlList[5].attributes()[1]undefined
xmlList[6].attributes()[1]undefined
xmlList[7].attributes()[1]undefined
xmlList[8].attributes()[1]undefined
xmlList[9].attributes()[1]undefined
xmlList[10].attributes()[1]undefined
xmlList[11].attributes()[1]undefined
xmlList[12].attributes()[1]undefined
xmlList[13].attributes()[1]undefined
xmlList[14].attributes()[1]undefined
xmlList[15].attributes()[1]undefined