ActionScript 3 SWF metadata tag

Using MXMLC (the MXML and ActionScript 3 stand alone, command line compiler provided with the free Flex 3 SDK) to compile your ActionScript 3 SWFs, you can use the SWF metadata tag to set common properties in the main document class for the application. The SWF metadata tag supports 4 properties

  • width
  • height
  • frameRate
  • backgroundColor
package {
    [SWF(width="800", height="600", frameRate="60", backgroundColor="#FFFFFF")]
    public class Main extends Sprite {

    }
}

About this entry