How to simply setup and use Flashdevelop.

Flashdeveop is free, open source, powerful actionscript(and not only) editor based on NET framework.
Unfortunately it’s for windows only…
My first actionscript editor was Scite|Flash(the old days), after I switch to Flashdevelop and quite happy with it.


You will get actionscript project management, advanced code completion, contextual menu, integration with flash IDE and much more …
For more information about features visit:  http://www.flashdevelop.org/community/viewtopic.php?t=23

Here are the steps to start using Flashdevelop.

Now open Flashdevelop >> Tools >> Program Settings(F10)

AS3contxt: set check syntax on save to true
Flex SDK location: set to the flex SDK location(inside Flex Builder, or path to the free SDK)
ASCompletion: >> Path To Flash IDE: set the path to Flash IDE
FlashViewer: External Player Path: set the path to the debug player
Movie Display Style: External

That’s all, we are done.
For more customization options and all features visit flashdevelop.org.

Now let’s use Flashdevelop to create as3 only project without using Flash IDE.

Open Flashdevelop, Project >> new Project >> as3 Project.
Choose name and location for your project and press Ok.
Flashdevelop will create bin, src, lib folders and Main.as Class ( main project class) file, which we will see in project panel at top right.

Right click on project name (under project panel) >> properties.
output >> test movie >> choose external player(if its not), you can play with other settings here as well, like movie dimension, framerate and background color.

Compiler options >> Allow source path overlap >> true

Open Main.as and at the end of  “init” method add:
[as]
trace(“draw rect”);
var sp:Sprite = new Sprite();
sp.graphics.beginFill(0xff0000);
sp.graphics.drawRect(0, 0, 50, 50);
sp.graphics.endFill();
addChild(sp);
[/as]
Save file >> Test Movie( CTRL+ENTER).

Here is the full Main.as Class file:

[as]
package
{
import flash.display.Sprite;
import flash.events.Event;

/**
* …
* @author Armen Abrahamyan
*/
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
{
removeEventListener(Event.ADDED_TO_STAGE, init);
// entry point
trace(“draw rect”);
var sp:Sprite = new Sprite();
sp.graphics.beginFill(0xff0000);
sp.graphics.drawRect(0, 0, 50, 50);
sp.graphics.endFill();
addChild(sp);
}

}

}
[/as]

Bookmark and Share

3 thoughts on “How to simply setup and use Flashdevelop.

  1. Pingback: armen abrahamyan How to simply setup and use Flashdevelop | Wood TV Stand

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>