Solved

AS3: XMLList

Posted on 2009-04-07
3
523 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
Comment Utility
if you're trying to load an xml and access it then yes that's correct.
0
 
LVL 6

Author Closing Comment

by:Madkhali
Comment Utility
happy to see you :), thanks for ever
0
 
LVL 6

Author Comment

by:Madkhali
Comment Utility
Yes it is :).
Thanks for your support :)
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…
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.

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now