Solved

AS3: XMLList

Posted on 2009-04-07
3
533 Views
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

0
Comment
Question by:Madkhali
  • 2
3 Comments
 
LVL 39

Accepted Solution

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

Author Closing Comment

by:Madkhali
ID: 31567406
happy to see you :), thanks for ever
0
 
LVL 6

Author Comment

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

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

776 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