FlashDevelop is a free and open source code editor for every Flash developer
FlashDevelop offers first class support for ActionScript (2 & 3) and HaXe development. Great completion & code generation, projects compilation & debugging, plenty of project templates, SWF/SWC exploration etc. FlashDevelop is also a great web developer IDE with source-control support (svn, git, mercurial), tasks/todo, snippets, XML/HTML completion and zen-coding for HTML.
now How to Create the project in FlashDevelop4.0.1 for android mobile application:-
step1:
Select the New Project in tool menu Project panel.
Choose your Project type. example we are create now android mobile application so select AIR Mobile AS3 App. then type your project name and choose your project file path.
here i gave androidApp for project name.
then push the OK button your project will be create.
step 2:
In your left side have a project details menu.
Create your android certificate from CreateCertificate.bat in bat folder
Right Click the CreateCertificate.bat file and Execute that file.
you show this popup and Press any key to continue after your certificate is ready.
you check the certificate in cert folder.
step 3:
your source main file is Main.as in src folder.
package
{
import flash.desktop.NativeApplication;
import flash.events.Event;
import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.text.TextField;
import flash.text.TextFormat;
import flash.ui.Multitouch;
import flash.ui.MultitouchInputMode;
import flash.text.TextFieldAutoSize;
/**
* ...
* @author KUMARESH NRV
*/
public class Main extends Sprite
{
private var tex:TextField = new TextField();
private var texFor:TextFormat = new TextFormat();
public function Main():void
{
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
stage.addEventListener(Event.DEACTIVATE, deactivate);
// touch or gesture?
Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
// entry point
texFor.size = 40;
texFor.color = 0x643654
tex.defaultTextFormat = texFor;
tex.autoSize = TextFieldAutoSize.CENTER;
tex.text = "hello android";
tex.x = (stage.stageWidth / 2)-tex.width/2;
tex.y = stage.stageHeight / 2;
addChild(tex);
}
private function deactivate(e:Event):void
{
// auto-close
NativeApplication.nativeApplication.exit();
}
}
}
Step 4:
How to create the .apk file from this one.
Execute the PackageApp.bat file form in your Right side Project Details panel
then you show this popup. and type your Choice Number for output file type.
here we want android apk file so we give 1 and ENTER for to continue.
Now your .apk file is create in dist folder.
Enjoy Guys... Create your Application in your Favourite android mobile.
...CHeeRS...