Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
[DNA] #1
URLRequest + URLLoader
How can you load a xml file using URLRequest and URLLoader?
I tried to find it through the web, but there is very little documentation about this...
[DNA] Guest
-
Problem with URLLoader
Hello, I am trying to load an XML from a url into a variable so that I can access it in my Flex application. I have this code: var myXML:XML = new... -
URLRequest problem
The following statement :- <mx:click>navigateToURL(new URLRequest('http://web.artprice.com/classifieds/fineart/details.aspx?id=378866&i... -
Error with URLLOADER
i get this error: Error: Unknown Property: 'id'. When i do: loader.addEventListener(Event.COMPLETE, function():void {dispatchEvent(new... -
How to use URLRequest to go to a mxml file rather then awebsite?
How to use URLRequest to go to a mxml file rather then a website? -
URLVariables and URLRequest problem
I get the following errors when I try using URLVariables and URLRequest. Can anyone tell me what I'm doing wrong ? The class or interface... -
Greg Lafrance #2
Re: URLRequest + URLLoader
FB3 help topic "Reading external XML documents":
You can use the URLLoader class to load XML data from a URL. To use the
following code in your applications, replace the XML_URL value in the example
with a valid URL:
var myXML:XML = new XML();
var XML_URL:String = "http://www.example.com/Sample3.xml";
var myXMLURL:URLRequest = new URLRequest(XML_URL);
var myLoader:URLLoader = new URLLoader(myXMLURL);
myLoader.addEventListener("complete", xmlLoaded);
function xmlLoaded(event:Event):void
{
myXML = XML(myLoader.data);
trace("Data loaded.");
}
Greg Lafrance Guest



Reply With Quote

