# Create and save files with flash using AS 3.0

**URL:** https://forum.kirupa.com/t/create-and-save-files-with-flash-using-as-3-0/265951
**Category:** flash
**Created:** [July 14, 2008, 9:36pm UTC](https://forum.kirupa.com/t/create-and-save-files-with-flash-using-as-3-0/265951 "2008-07-14T21:36:07Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![spectator](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@spectator](https://forum.kirupa.com/u/spectator)
#### Post date: [July 14, 2008, 9:36pm UTC](https://forum.kirupa.com/t/create-and-save-files-with-flash-using-as-3-0/265951/1 "2008-07-14T21:36:07Z")

</div>

I wonder how can I create file using ActionScript 3.0 and save it? Is this is possible without using any other language? If it’s not which is the best way to create a project which will save some data to the hard drive. How can I store some variables for example in txt file ot xml file?

---

<div class="post-metadata">

### Author: ![sekasi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sekasi](https://forum.kirupa.com/u/sekasi)
#### Post date: [July 14, 2008, 9:40pm UTC](https://forum.kirupa.com/t/create-and-save-files-with-flash-using-as-3-0/265951/2 "2008-07-14T21:40:04Z")

</div>

Actionscript is pretty bad at writing files. In fact, it’s so bad it can’t! : )

You need to make use of php/asp/aspx or a similar SS scripting language that is called from flash.

---

<div class="post-metadata">

### Author: ![spectator](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@spectator](https://forum.kirupa.com/u/spectator)
#### Post date: [July 14, 2008, 9:42pm UTC](https://forum.kirupa.com/t/create-and-save-files-with-flash-using-as-3-0/265951/3 "2008-07-14T21:42:56Z")

</div>

I hoped there could be some way to do this 🙂 10x for the answer

---

<div class="post-metadata">

### Author: ![krilnon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/krilnon/32/34_2.png) [@krilnon](https://forum.kirupa.com/u/krilnon)
#### Post date: [July 14, 2008, 9:42pm UTC](https://forum.kirupa.com/t/create-and-save-files-with-flash-using-as-3-0/265951/4 "2008-07-14T21:42:57Z")

</div>

Is this application going to run in the browser or not?

If it is, then you could consider either waiting for Flash Player 10 to come out or force all of your users (if you have a controllable environment like an office) to download the beta. FP10 has the capability to save files directly to a hard drive without using another language. If you need to use an older version of Flash, then the best way has always been to follow sekasi’s suggestion.

If it’s going to be a desktop application of some sort, then you could you AIR’s file API.

---

<div class="post-metadata">

### Author: ![spectator](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@spectator](https://forum.kirupa.com/u/spectator)
#### Post date: [July 14, 2008, 9:45pm UTC](https://forum.kirupa.com/t/create-and-save-files-with-flash-using-as-3-0/265951/5 "2008-07-14T21:45:41Z")

</div>

It’s going to be a desktop application. I can use AIR to do this?

---

<div class="post-metadata">

### Author: ![krilnon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/krilnon/32/34_2.png) [@krilnon](https://forum.kirupa.com/u/krilnon)
#### Post date: [July 14, 2008, 9:51pm UTC](https://forum.kirupa.com/t/create-and-save-files-with-flash-using-as-3-0/265951/6 "2008-07-14T21:51:44Z")

</div>

If your target users have AIR or would not mind installing AIR, then yes, you could use the [`flash.filesystem`](http://livedocs.adobe.com/flex/3/langref/flash/filesystem/package-detail.html) package to write the file.
