= Axdt Documentation = [[TOC]] There is an [http://axdt.blip.tv/file/982531/ old screen cast] describing the installation and first use for version '''0.0.2'''. > The documentation is not complete. == User documentation == * [AxdtLaunchConfig Launcher] * [AxdtFlexDesignview Flex Designview] * [AxdtMxmlValidation Mxml Validation] * [AxdtSettings Axdt settings in detail] * [AxdtFlexAnt Flex Ant Tasks] == Quickstart == ==== Create Project ==== 1. Open AXDT Perspective '''''"Window" > "Open Perspective" > "Other..." > "AXDT"''''' * If the AXDT Perspective is not shown in the list read the [wiki:InstallAxdt installation instructions] again. 1. Create a sample project '''''"New" > "Projekt..." > "AXDT" > "AXDT Project" > name="test"''''' 1. Right now the layout should look like this: {{{ - test (with an axdt logo) > src }}} ==== Compile AS File ==== 1. Now create a !ActionScript 3 file in the src directory with '''''"New" > "AS3 File" > source folder="/test/src/" package="org.axdt" name="Test"''''' 1. As you can see the folder will be automatically created and the file contains this: {{{ package org.axdt{ public class Test { } } }}} 1. For now override the content with following snipped and save. {{{ package org.axdt{ import flash.display.*; import flash.events.*; public class Test extends Sprite { public function Test () { stage.addEventListener(MouseEvent.CLICK, clickListener); } private function clickListener (e:MouseEvent):void { if (e.target == stage) { drawCircle(e.stageX, e.stageY); } else { removeChild(DisplayObject(e.target)); } } public function drawCircle (x:int, y:int):void { var randomColor:int = Math.floor(Math.random()*0xFFFFFF); var randomSize:int = 10 + Math.floor(Math.random()*150); var circle:Sprite = new Sprite(); circle.graphics.beginFill(randomColor, 1); circle.graphics.lineStyle(); circle.graphics.drawEllipse(0, 0,randomSize, randomSize); circle.x = x-randomSize/2; circle.y = y-randomSize/2; addChild(circle); } } } }}} 1. You can now select the launcher with '''"Run as.."''' > '''"Compile and Open a SWF File"''' 1. The compilation progress is shown in the ''Progress View'' or the bottom right corner of the window. 1. A ''Console View'' opens up. It shows the compiler output. 1. As soon as the swf file is compiled the deploy folder will appear and the swf view will open. * If you see a blank page refer to GuideViewer for now and set up you eclipse browser. 1. You can now test the "As3Test.swf" and click on the canvas to create circles. ==== Compile Mxml File ==== 1. ''mxml'' files are also accepted as build targets. Use the wizard to create a MXML File within the project '''''"New" > "MXML File" > name="!MxmlTest"''''' 1. Note: there is mxml content assist available for the standard eclipse xml editor (WST). 1. For now fill the content with: {{{ Hello World! }}} 1. You can call the same launcher as described above. 1. The initial build is usually slow, however compiling a target a second time will be much fast thanks to incremental compilation.