# Compiling AS3 code to an an exe in Flash

**URL:** <https://forum.kirupa.com/t/compiling-as3-code-to-an-an-exe-in-flash/283307>\
**Category:** flash\
**Created:** [March 4, 2009, 6:41pm UTC](https://forum.kirupa.com/t/compiling-as3-code-to-an-an-exe-in-flash/283307 "2009-03-04T18:41:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![keithsink](https://avatars.discourse-cdn.com/v4/letter/k/e274bd/32.png) [@keithsink](https://forum.kirupa.com/u/keithsink)\
**Post date:** [March 4, 2009, 6:41pm UTC](https://forum.kirupa.com/t/compiling-as3-code-to-an-an-exe-in-flash/283307/1 "2009-03-04T18:41:34Z")

</div>

Hi all,

I appologize in advance if this is an easy question, but I can’t find the information I need. I’m a new Actionscript user.

I’m writing an AS3 game in Flash Developer and I have Flash CS4 as well. I like the editor in Flash Developer better, so that’s why I’m going that route.  
Anyway, the program compiles into a SWF fine in Flash Develop and I’m not using CS4 at all. However I will need to eventually be able to make a PC executable and a Mac executable at a future date.

Can someone tell me what the process would be? Any advice if any of you have done a similar thing?

One thing I tried last night was creating a new project in Flash and linking my main class to that project. It gave me an error about using:

```auto
import mx.controls.Button;

```

I tried changing it to

```auto
import fl.controls.Button;

```

but that had the same problem.

Am I on the right track here?  
Any help is appreciated.
