5 Replies Latest reply on Jan 6, 2010 7:09 PM by Dean Schulze

    Using an .as file as the runnable Application file

    Dean Schulze Level 1

      I want to use a .as file as my runnable application file.  The code is below.  Flash Builder 4 does not show it as a possible runnable application file when I go to Properties -> Flex Applications.

       

      I've also tried to do this as a subclass of the Spark Application class and it has the same problem.

       

      What do I have to do to make a .as file my runnable application file?

       

      MyMain.as:

       

      package
      {
          import components.*;
         
          import flash.display.Sprite;
         
          import flashx.textLayout.formats.BackgroundColor;
         
          public class MyMain extends Sprite
          {
              public function MyMain()
              {
                  super();
                 
                  minHeight = 768
                  minWidth = 1024;
                  BackgroundColor="#333399";

       

              }
          }
      }