Solved

AS3: XMLList

Posted on 2009-04-07
3
546 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

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

While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
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 select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

717 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