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(
	// 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

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.
MadkhaliAuthor Commented:
happy to see you :), thanks for ever
MadkhaliAuthor Commented:
Yes it is :).
Thanks for your support :)
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.