all groups > flash data integration > june 2006 >
You're in the

flash data integration

group:

class to create new XML


class to create new XML aneesh NO[at]SPAM arackal.co.in
6/2/2006 12:00:00 AM
flash data integration:
hi all

i got a doubt with creating XML objects using classes. the case is:
there should be a class like CreateXML which will intialise an XML object
and has methods to add new elements to the XML. how to create new XML
elements/nodes to this class?

is there anyway to create and write into an external XML file using
actionscript?
can we make an XML object updated with new data elements on the runtime
itself?

hopefully waiting...
aneesh.

Re: class to create new XML Motion Maker
6/2/2006 1:41:29 PM
Use the XML Actionscript class to create XML objects. You can use the class
to create internally contained XML objects and you can use the class to read
XML sources either server side script generated or plain text files. You can
use the XML class to communicate with a server script of any variety to read
and parse the XML for processing on the server including writing to a file
or database and returning XML messages.

You cannot write XML files to the local drive or network. Must be the http:
protocol.


Your references are:

http://livedocs.macromedia.com/flash/8/main/00002862.html

You might look at the sendAndLoad documentation:
http://livedocs.macromedia.com/flash/8/main/00002879.html


You also can look at Flash components for a more GUI way of handling XML.
http://livedocs.macromedia.com/flash/8/main/00000756.html

--
Lon Hosford
www.lonhosford.com
Flash, Actionscript and Flash Media Server examples:
http://flashexamples.hosfordusa.com
May many happy bits flow your way!
[quoted text, click to view]
hi all

i got a doubt with creating XML objects using classes. the case is:
there should be a class like CreateXML which will intialise an XML object
and has methods to add new elements to the XML. how to create new XML
elements/nodes to this class?

is there anyway to create and write into an external XML file using
actionscript?
can we make an XML object updated with new data elements on the runtime
itself?

hopefully waiting...
aneesh.

AddThis Social Bookmark Button