Hi
It’s my first post here, and i have a doubt…
I need save a MovieClip in XML format, then i wrote this code below:
[SIZE=2]private function getDegrafaData(e:MouseEvent):void {
var xml:XML = _canvas.getObjectData(FormatType.DEGRAFA);
_saveFileRef.save(xml.toString(), “My_Sketch.xml”);
}[/SIZE]
ok, file saved, but when i open .xml file its empty, so i cannot load this file ;/
below is my load code:
private function generateObjects(e:MouseEvent):void {
_loadFileRef.browse([new FileFilter(“All Formats (.xml)", ".xml”)]);
}
private function selectFile(e:Event):void {
_loadFileRef.load();
}
private function completeFile(e:Event):void {
_canvas.setObjectData(newXML(_loadFileRef[‘data’]),FormatType.DEGRAFA);
}
anyone can help me?
i need to do this quickly!
sorry my english, i’m brazilian :sure:
Thanks :batman: