In creating and import/export for FLASC, it was critical to make sure it was brought back in exactly the way I stored the projects. After a while, there were a few items to add/fix with the latest version, but I think we're there!
1. Instead of using split(), i added a counter to go through the array object. Split was hacking my original array objects ;)
2. Line 59, instead of doing a for..in loop, I changed it to a regular for loop for index based looping of an array.
3. Line 131, added boolean casts to make the conversion complete from XML to Object ;)
and of course, with the changes that Ben made for getting rid of "data" properties, it's looking pretty close to being complete.
I now have a complete class that does conversion back and forth between XML and Objects - and so far, it works really well.
You can check it out here:
http://mirror1.cvsdude.com/trac/osflash/xray/browser/downloads/FLASC/XMLObject.as?rev=102#L131
--
John Grden - Blitz
_______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
