AS3: XMLList

Posted on 2009-04-07
Medium Priority
Last Modified: 2013-11-12
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

Question by:Madkhali
  • 2
LVL 39

Accepted Solution

blue-genie earned 2000 total points
ID: 24087642
if you're trying to load an xml and access it then yes that's correct.

Author Closing Comment

ID: 31567406
happy to see you :), thanks for ever

Author Comment

ID: 24089297
Yes it is :).
Thanks for your support :)

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

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.

Join & Write a Comment

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

588 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question