# Save xml file in same directory as Flash file

**URL:** https://forum.kirupa.com/t/save-xml-file-in-same-directory-as-flash-file/309035
**Category:** flash
**Created:** [May 5, 2010, 12:23pm UTC](https://forum.kirupa.com/t/save-xml-file-in-same-directory-as-flash-file/309035 "2010-05-05T12:23:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![four4swords](https://avatars.discourse-cdn.com/v4/letter/f/87869e/32.png) [@four4swords](https://forum.kirupa.com/u/four4swords)
#### Post date: [May 5, 2010, 12:23pm UTC](https://forum.kirupa.com/t/save-xml-file-in-same-directory-as-flash-file/309035/1 "2010-05-05T12:23:08Z")

</div>

Hi,

What methods could I use to save a xml generated in flash into the same directory as the swf file?

I know I can use “FileReference.save()” for flash player 10. But this has prompt window that appears and lets the user choose where to save. I just want it to automatically save in the directory of the flash file…

Any ideas?
