I just put this XMLTest.fla I was using. It already has this code in the timeline for testing the conversion from XML to Object:
import org.opensourceflash.data.XMLObject;
var xmlDoc_0:XML = new XML("<ROOT><SEC><SUB>1</SUB><SUB>2</SUB></SEC><SEC><SUB>3</SUB><SUB>4</SUB></SEC><SEC><SUB>5</SUB><SUB>6</SUB></SEC></ROOT>")
var obj_0 = XMLObject.getObject(xmlDoc_0);
// display the object
tt(obj_0);
// show me particular property
tt(obj_0.ROOT.SEC[0].SUB[0]);
// this is what the xml pyhi
/*
<ROOT>
<SEC>
<SUB>1</SUB>
<SUB>2</SUB>
</SEC>
<SEC>
<SUB>3</SUB>
<SUB>4</SUB>
</SEC>
<SEC>
<SUB>5</SUB>
<SUB>6</SUB>
</SEC>
</ROOT>
*/
Can you point me in the direction of usage of the XMLObject class?ta.Dan Mackie
Project Manager/Multimedia Developer, Atticmedia
[EMAIL PROTECTED]
http://www.atticmedia.com
Tel: +44 (0) 20 7490 8789
fax: +44 (0) 20 7490 8181Mob: +44 (0) 7957 438192
34 Waterside44-48 Wharf RoadLondonN1 7UX
______________________________________________________________________
Atticmedia - The Specialists in Interactive Learning and Entertainment
A New Media Age UK Top 25 Agency.
______________________________________________________________________
This e-mail is intended only for the addressee named above. If you are
not the named addressee, or the person responsible for delivering the
message contact the sender and delete the material from your computer.
This message reflects the sender's views and opinions not necessarily
those of Atticmedia.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of John Grden
Sent: 29 March 2006 06:29
To: Open Source Flash Mailing List
Subject: [osflash] XMLObject.as class updatedWell, I had received an update from Seth today which was a great addition to the XMLObject class. But I still needed to get back to refining the recursion process of going from XML to Object.
Finally, I went back and looked at Alessandro's code and decided what I was doing wasn't going to be any smaller/compact and his worked great. So I cleaned it up a little and integrated it and it works great. Ended up fixing the import issue I was having with Flasc ;)
http://mirror1.cvsdude.com/trac/osflash/flasc/browser/trunk/DEV_Source/classes/org/opensourceflash/data/XMLObject.as
--
John Grden - Blitz
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org
--
John Grden - Blitz
_______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
