FlashDevelop is a free and open source editor for Flex, Air, and ActionScript projects. FlashDevelop is a .NET project and has a look and feel similar to Visual Studio. To get started with FlashDevelop you will need to download the latest version of Flex SDK and FlashDevelop.
To configure FlashDevelop, you need to point to the location where you unzipped the Flex SDK. I typically unzip Open Source libraries under C:\OSDEV. Once FlashDevelop has been configured to point to the Flex SDK, you can create an ActionScript 3.0 project by going to Project | Create Project and selecting ActionScript 3.0 project from the project wizard.
Creating a new project will create a project directory structure with a bin, lib, and src folders. Under the src folder there is an Main.as ActionScript file with the following scaffold code…
* @author DefaultUser (Tools -> Custom Arguments...)
public class Main extends Sprite
public function Main():void
if (stage) init();
else addEventListener(Event.ADDED_TO_STAGE, init);
private function init(e:Event = null):void
// entry point
Inside the init function, below the comment ‘entry point’ you can add your custom ActionScript code. For example, to create the standard ‘Hello, World!’ example you can add the following code.
var texty:TextField = new TextField();
texty.text = "Holla, World!";
texty.textColor = 0xFF00f0;
If you want to work with shapes here is an example to create a square and a circle.
var shapely:Shape = new Shape();
shapely.graphics.drawCircle(150, 150, 50);
Build the project and open launch the index.html file under the bin directory.
Technorati Tags: flash, air, flex, flashdevelop, actionscript, graphics, vector, development