Save file from flash to user's local computer

Hello all,

             In my flash file, I would like to add save button which can save the drawing in my flash as .xml file to the user's local computer.

Will it be without use any serverside code?,because my flash file is for offline useage.I’m in urgent and thanks for all reply and thanks in advance.:ne: