How to use XML to save users displayobject

Hi

This is my first project in AS3, been using flash for 10 years, it was time to take the plunge.

I am trying to create a app that allows the user to create an online comic strip.

My thinking is when the user drags a movieclip to the “page” I use addChild to then copy whatever they dragged into the page_mc.

They can then adjust position, scale etc

That is relatively straightforward.

I am having issues on a method so the user can save progress online. I have PHP experience so can set up a database etc. But how do get an XML based on the displayObject.

From reading about the display list, it seems ideal, and very suited to looping through each child and creating an xml file with the same hierarchy.

Is there a “dump display object to xml” method?

I can loop through the displayobject with a trace function, but that does not specify all the parents, just the individual children.

Thanks