From "WordLingo" Translator:
FlashDevelop it is an application Open Source created mainly for the development with ActionScript 2.0, although serve in addition like publisher for other languages like Javascript, HTML, CSS or XML.
FlashDevelop serves so much as publisher as ActionScript 2.0, like own free surroundings of development since Integra MTASC what an alternative is made of this application very consider for the development of aplications in ActionScritp 2.0.
More information on the basic characteristicses of this application in osflash, and in the own one page of the project.
Next, in 5 simple steps I will explain the way to create ours Hello World from FlashDevelop.
1.- Unloading and Installation.
The first step is to unload the last stable version of FlashDevelop. I in this tutorial am using version 2.0.0 RC2 available from here. Trֳ¡s the unloading is due to come to the installation. The installation does not have because to give many problems since he is so simple to install as any other program more of Windows.
2.- New Project.
Once installed we executed FlashDevelop and we will create a New Project. For it we opened the option of the menu ' Proyect - New Proyect..'.
We will select the option of Standard Proyect and indicated the location where we will keep our project.
This will generate the following structure automatically to us:
3.- New HolaMundo Class.ace
We will create the following class, where we will create a text box and we will leave to our message ' Hello World '.
For it, he is as simple as to go to the menu ' File-New' and to add the following code:
Actionscript:
Code:
class HolaMundo{
public function HolaMundo() {
to var miTxt = new TextFormat();
miTxt.font = "Tahoma";
miTxt.size = 12;
_ root.createTextField("miCaja", 1, 20, 20, 0, 0);
_ root.miCaja.selectable = true;
_ root.miCaja.to border = true;
_ root.miCaja.autoSize = true;
_ root.miCaja.text = "Hello World ";
_ root.miCaja.setTextFormat(miTxt);
}
We will keep it like HolaMundo.ace in the folder classes of our project
4.- Modification of the Main class of our project.
We will modify the main class of our project, where we will create an object of the HolaMundo class and will add the necessary parameters for that this class, together with the rest of our project can be compiled by MTASC.
The code will be the following one:
Actionscript:
Code:
/*
* @mtasc - swf c:\Main.swf - to header 500:400:24:EFEFEF - main
*/
class Main
{
public static function main():Void {
to var miPelicula: HolaMundo = new HolaMundo();
}
}
The first three lines serve to indicate to MTASC the compilation parameters.
These parameters are those that compiler MTASC needs for the compilation process, more information here . The way to introduce these parameters is the following one:
Actionscript:
5.- Compilation.
FlashDevelp counts on the functionality to verify the correction of our ActionScript classes. For it the bar of tools of our application has the following button:
The following bellboys serve to compile and to create our file swf.
After the correction of our classes and the compilation of our project, the final structure will be the following one:
I hope that it serves to you as something, any doubt or commentary is welcome..