Saturday, May 10, 2008

FAMES Installation

As I said on earlier posts, there are many Web pages for beginning pure Open Source Flash development, but I'm going to walk you through the basics. In one place.

If you've done any reading on other Websites about Open Source Flash development, you'll know the expression "FAMES". It is an acronym for the four tools frequently used. FAMES equals:
  • Flashout Eclipse plug-in
  • ActionScript Development Tools Eclipse plug-in (ASDT)
  • Motion Twin ActionScript Compiler (MTASC)
  • Eclipse Integrated Development Environment
  • swfmill
I use everything above, except the Flashout plug-in. I cannot get Flashout to work on my Eclipse installation. I have found similar debugging tools are available in the standard setup for ASDT. (We will install it below.)

Install Eclipse. Honestly, this is easier said that done. While I have years of programming experience, I had never used Eclipse and couldn't find a Website that could explain it. In [very] short, it is an integrated development environment (IDE), like KDevelop, emacs, or Microsoft Visual Studio, initially written by IBM, but now managed by the Open Source community. What makes Eclipse different than many other IDEs: it is nearly language neutral. Separate plug-ins allow for development using different platforms, e.g., PC vs. mobile, and different languages, e.g., C++ vs. Java. A standalone installation of Eclipse can do very little. You need plug-ins!

Additionally, Eclipse is a Java application. I know nothing about the Java programming language, except you need a Java virtual machine (VM) to run the applications. There are competing Java VMs all supporting a variety of Java versions. Most C and C++ programmers never notice their "version" of language being used. In Java, this is crucial for language features (templates, etc.) and libraries. To make things one step worse, Open Source Java VMs, until recently, have been insufficient to run some Java applications. Getting Eclipse to run on your Java VM may be a challenge.

JRE

First, install a Java Runtime Environment. There are at least three choices:
  1. OpenJDK (Open Source JRE lead by Sun Microsystems)
  2. IcedTea (fork of OpenJDK by RedHat)
  3. GIJ-based (GNU Java bytecode interpreter)
All should work. You can search for "java runtime" in Adept Manager to find these JREs.

Eclipse

Second, install Eclipse. My version is 3.2.2. There will be hundreds of Eclipse plug-ins available in your Adept Manager. You only need to select package "eclipse".

Try to launch Eclipse after installation to prove your JRE and Eclipse are playing nicely. No sense progressing without this completing this step.

MTASC

Third, install Motion Twin ActionScript Compiler (MTASC). Mine is version 1.13. You can find it in Adept Manager.

swfmill

Fourth, install swfmill. Mine is version 0.2.12. You can find it in Adept Manager.

ASDT

Fifth, install ActionScript Development Tools (ASDT). This is a plug-in for Eclipse to facilitate ActionScript and Flash development. The plug-in can be installed from Eclipse directly.
  1. Launch Eclipse.
  2. Help -> Software Updates -> Find and Install...
  3. Select Search for new features to install and click Next
  4. Click New Remote Site...
  5. Enter ASDT in the Name box
  6. Enter http://aseclipseplugin.sourceforge.net/updates in the URL box
  7. Select ASDT and click Finish
  8. After installation is complete, restart your Eclipse.
You now have all necessary tools installed to build Open Source Flash files. In the next post, we will cover your first Flash demo.

No comments: