FlashDevelop

From Whirled Club Wiki
Jump to navigation Jump to search

FlashDevelop is an open source ActionScript editor with code completion, syntax hilighting and a variety of other development features.

Prerequisites

You need the JDK, the Flex 3 SDK and the Whirled SDK. Follow these instructions for acquiring and installing these resources: Setting up your programming environment.

Downloading and Installing FlashDevelop

Download the latest version of Flash Develop from the FlashDevelop Releases page.

Run the installer and follow the instructions.

Setting Up Whirled SDK

Introducing the Whirled SDK to FlashDevelop

Choose Tools → Global Classpaths (Ctrl-F9). Add your Whirled SDK's ActionScript directory. If you installed the Whirled SDK in c:\whirled, this will be c:\whirled\src\as.

Global Classpath Settings

Introducing the Flex SDK to FlashDevelop

Choose Tools → Program Settings (F10).

In the "Plugins" section, choose "AS3Context".

Set Language → AS3 Classpath to your Flex 3 SDK's lib directory. If you installed the Flex SDK in c:\flex_sdk_3, this will be c:\flex_sdk_3\lib

Set Language → Flex SDK Location to the directory in which you installed the Flex SDK.

Classpath Settings

Running the Reversi Example Game

   Project->New Project
   Flex 3 Project
       Name: Reversi
       Location: c:\whirled\examples\games\reversi
       Package: (leave blank)
       Unchecked "Create directory for project"
       OK -- Allow FlashDevelop to copy template files

New Project

   Project->Properties
       Output:
           Output file: Reversi.swf (remove \bin)
           Test Movie: Run custom command...
               Edit...
                   Command: build.bat

Output Properties Test Movie Command

       Classpaths:
           Remove 'src'
           Add project directory (c:\whirled\examples\games\reversi)

Project Classpath

   Project->Test Movie*

Troubleshooting

  • You may need to run "build.bat" once from the command line to get the Whirled SDK set up if you have not already done so.
  • You also may need to grant your user id execute privileges on build.bat if you get an "Access denied" message.