AS3: XMLList

hi :)
please see my comment in the code below, am i write?
guide me please, Thanks :)
var newsX:XML;
var newsList:XMLList
 
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onComplete);
loader.load(new URLRequest("news.xml"));
 
function onComplete(e:Event):void
{
	newsX = new XML(loader.data)
	// newsList is a var that can help to go to specific nodes in the XML file
	newsList = newsX.story
	xmlText_txt.text = newsList[0].content
}

Open in new window

LVL 6
MadkhaliAsked:
Who is Participating?
 
blue-genieConnect With a Mentor Commented:
if you're trying to load an xml and access it then yes that's correct.
0
 
MadkhaliAuthor Commented:
happy to see you :), thanks for ever
0
 
MadkhaliAuthor Commented:
Yes it is :).
Thanks for your support :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.