view FDT project index page in web browser

The new html wrapper for AS 3 projects in FDT 4.2 is a really nice feature!

Here is a “Quick Tip” that will let you full this web page inside of FDT.

Lets create a simple ball project and view it in the browser.

package {
   import flash.display.Shape;
   import flash.display.Sprite;

   public class Main extends Sprite {

   // Global variables
   private var circle:Shape = new Shape();
   public function Main() {
     init();
   }

   public function init():void {

     circle.graphics.beginFill(0xcccccc);
     circle.graphics.drawCircle(150, 150, 50);
     circle.graphics.endFill();
     addChild(circle);

   }
 }
}

Now when you run the project your html page is created for you. To view this inside of FDT open in web browser

this will produce this view in FDT

Leave a Reply

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