RE: [flexcoders] Read XML files

2009-02-19 Thread Tracy Spratt
I'd suggets HTTPService for reading xml files.  It is a bit easier to
use than URLLoader, and aimed specifically at XML over http.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Laurent Cozic
Sent: Thursday, February 19, 2009 12:08 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Read XML files

 

Parsing XML is built into AS3, see for example:
http://www.kirupa.com/developer/flashcs3/using_xml_as3_pg1.htm

To load an XML file, see URLLoader and URLRequest. For example:

var loader = new URLLoader();
loader.load(new URLRequest("http://example.com/xml.xml";));
loader.addEventListener("complete", xmlLoaded);

function xmlLoaded(event) {
   var xmlString = event.currentTarget.data;

   // and parse the XML here
}

--
Laurent Cozic

Flash, Flex and Web Application development
http://pogopixels.com <http://pogopixels.com> 

--- On Thu, 2/19/09, christophe_jacquelin
 wrote:

From: christophe_jacquelin 
Subject: [flexcoders] Read XML files
To: flexcoders@yahoogroups.com
Date: Thursday, February 19, 2009, 5:04 PM

Hello,

Which instructions to use to read/write XML files ?

Thank you,
Christophe,

 





Re: [flexcoders] Read XML files

2009-02-19 Thread Laurent Cozic
Parsing XML is built into AS3, see for example: 
http://www.kirupa.com/developer/flashcs3/using_xml_as3_pg1.htm

To load an XML file, see URLLoader and URLRequest. For example:

var loader = new URLLoader();
loader.load(new URLRequest("http://example.com/xml.xml";));
loader.addEventListener("complete", xmlLoaded);

function xmlLoaded(event) {
   var xmlString = event.currentTarget.data;

   // and parse the XML here
}

--
Laurent Cozic

Flash, Flex and Web Application development
http://pogopixels.com

--- On Thu, 2/19/09, christophe_jacquelin  wrote:
From: christophe_jacquelin 
Subject: [flexcoders] Read XML files
To: flexcoders@yahoogroups.com
Date: Thursday, February 19, 2009, 5:04 PM












Hello,



Which instructions to use to read/write XML files ?



Thank you,

Christophe,




 

  




 

















  

RE: [flexcoders] Read xml files in relative path

2009-01-14 Thread Gregor Kiddie
You can use app: and app-storge: (I think that's right) to access the
directories where the app is installed and the user specific locations.

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of narayanaweb
Sent: 14 January 2009 00:48
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Read xml files in relative path

 

I have a Adobe AIR application that reads XML files. Currently the
path to the files is Hard Coded. I tried adding the XML files to the
application source folder and referencing them, but was unsuccessful.
Please help..

Thanks,
Satya V