# Creating a swf with byteArray

**URL:** <https://forum.kirupa.com/t/creating-a-swf-with-bytearray/292484>\
**Category:** flash\
**Created:** [July 14, 2009, 6:49pm UTC](https://forum.kirupa.com/t/creating-a-swf-with-bytearray/292484 "2009-07-14T18:49:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fathed](https://avatars.discourse-cdn.com/v4/letter/f/b5ac83/32.png) [@fathed](https://forum.kirupa.com/u/fathed)\
**Post date:** [July 14, 2009, 6:49pm UTC](https://forum.kirupa.com/t/creating-a-swf-with-bytearray/292484/1 "2009-07-14T18:49:16Z")

</div>

I am trying to create a new swf with AIR and Flash CS3. All I want to do is push a button and have a new swf saved to the desktop with a line of actionscript in it. The actionscript can be anything – stop(); - for instance.

I have been messing around with ByteArray and I can save an image to a swf but I can’t find any information on what I want to do.

Any help would be greatly appreciated; this has got me stumped.
