FMX: Save user-drawn objects and save/load DXF/DWG?

Hey everyone. Sorry to seem like a leech, but I could really use the guidance. Usually I’m pretty good for finding the solution on my own without having to trouble people, but this time I seem to be coming up short. So thanks in advance for taking the time to read this.

I’m developing an auto-cad esque flash application (going good so far too). I have no problem storing object information in a database (xy coordinates, rotation, scale etc), but now my problem is converting that data to another format; specifically DXF or DWG. Now I know the flash environment itself can import/export DXF’s, but I don’t know how to load the user-made data into the environment. Is it possible to have the environment run actionscripts to build these user-made objects and then manually save that to a DXF? (or even better would be a save/load DXF from the flash player)

Essentially I’d need to know if it’s possible for the flash environment to read from my database (probably from reading a PHP built XML file), execute actionscript to reconstruct any objects created, and then let me go and manually (or automatically!) export a DXF of that.

Any comments or help would be greatly appreciated =]

EDIT:

The other very viable alternative is if you guys know of an XML to/from DXF/DWG converter.