This page is a work in progress. We'll update it more soon with instructions for other OSes/editors and more screenshots.
UPDATE: It looks like Adobe is willing to provide some of its Flash/Flex Builder software for free to students who can show proof that they are enrolled at a university. See this Free Adobe Flash Platform Technologies link for more information.
Like Java, you will need at most only two pieces of software: the Flash compiler (called "Flex 4 SDK") and some text editor. Depending on your operating system, you'll use different instructions to install it.
If you encounter problems trying to set up Flash on your machine, contact us for help and suggestions.
Download the Flex 4 SDK (Flash compiler) from the following web page:
The SDK doesn't have an "installer" program. It is just a .zip file that you need to decompress. Modern versions of Windows already know how to open and decompress .zip archives. You can usually do this by double-clicking the .zip file, then choosing File, Extract All... You can extract the files to any location you like. For the rest of this guide, we are going to assume that you extracted the files to C:\Flex . If you choose a different folder, please substitute that name everywhere you see "C:\Flex" below.
(Instructions for the Notepad++ editor are below.)
As was shown in the first Flash session, the Flash compiler is just a console program named mxmlc
that can be run from a terminal shell. If you are familiar with how to use a terminal, you can run the compiler in that way, passing the file to compile as a command-line argument to mxmlc
. However, we assume that most CSE 190 M students don't know how to do this, so we'll show you how to integrate the compiler with the TextPad editor. If you're on Windows and don't already have TextPad, you can download/install it here:
After you have successfully installed TextPad and unzipped the Flex 4 SDK, open TextPad and click the following:
bin
subdirectory, and select the file mxmlc.exe
and click 'Open'. In our example case it is installed at: C:\Flex\bin\mxmlc.exe
mxmlc
compiler emits an annoying error message every time we compile a program. "Warning: This compilation unit did not have a factoryClass specified in Frame metadata to load the configured runtime shared libraries. To compile without runtime shared libraries either set the -static-link-runtime-shared-libraries option to true or remove the -runtime-shared-libraries option." To make the message go away, from TextPad's Preferences dialog box, we can click on the Tools submenu at left, then click on our new Compile Flash tool in the list below it. In the text box labeled 'Parameters', after the word '$File', add a space and then write -static-link-runtime-shared-libraries
. Then press OK.
.as
file in TextPad, then click Tools, External Tools, Compile Flash (or press the hotkey shown next to Compile Flash, such as Ctrl-1 or Ctrl-4). If everything worked, you should see a compiler console pop up stating that the program compiled successfully. If not, go back and re-check your steps or email us for help.
You might also want to optionally set up TextPad to do syntax highlighting for ActionScript .as
files. To do this, follow these steps:
.as
file. You should now see the pretty highlighting and colors!
If you use the Notepad++ editor instead of TextPad, you can use these instructions.)
As was shown in the first Flash session, the Flash compiler is just a console program named mxmlc
that can be run from a terminal shell. If you are familiar with how to use a terminal, you can run the compiler in that way, passing the file to compile as a command-line argument to mxmlc
. However, we assume that most CSE 190 M students don't know how to do this, so we'll show you how to integrate the compiler with the Notepad++ editor. If you're on Windows and don't already have Notepad++, you can download/install it here:
After you have successfully installed Notepad++ and unzipped the Flex 4 SDK, open Notepad++ and click the following:
C:\flex
; if not, substitute your directory):
cmd /C "C:\flex\bin\mxmlc.exe" -static-link-runtime-shared-libraries $(FULL_CURRENT_PATH) || pause
.as
file in Notepad++, then click 'Run' -> 'Compile Flash' (or press the hotkey you gave the command). If everything worked, you should see a black console window pop up to compile the program. If it compiles successfully, the window will disappear. If are any errors, the black console window will stay on the screen so you can read them and fix them. If it doesn't work, go back and re-check your steps or email us for help.
Download the Flex 4 SDK (Flash compiler) from the following web page:
Unzip the resulting Flex .zip file into a folder on your Mac. We unzipped ours to our home directory in a subdirectory named flex
. The rest of our directions will assume you did the same; if you used a different folder, please alter the following directions to match.
As was shown in the first Flash session, the Flash compiler is just a console program named mxmlc
that can be run from a terminal. If you are familiar with how to use a terminal, you can run the compiler in that way, passing the file to compile as a command-line argument to mxmlc
. However, we assume that most CSE 190 M students don't know how to do this, so we'll show you how to integrate the compiler with the Smultron editor. If you're on Windows and don't already have Smultron, you can download/install it here:
After you have successfully installed Smultron and unzipped the Flex 4 SDK, open Smultron and click the following:
#!/bin/bash osascript <<-EOF tell app "Terminal" launch activate do script "~/flex/bin/mxmlc '$(echo %%p)' -static-link-runtime-shared-libraries" end tell EOF
Your dialog box should look like this:
Download the Flex 4 SDK (Flash compiler) from the following web page:
The installer is distributed as a '.bin' file. Once you've downloaded it, give it execute permissions (chmod +x) and then run it. This will install Flex SDK.
Since there are so many different text editors for Linux, you may just want to run the mxmlc
compiler from the command line. The SDK does include some Eclipse plug-ins if you prefer that editor. Otherwise you're on your own!