[转]ActionScript 3 SWF metadata tag
原文出处:http://bauhouse.wordpress.com/2009/01/16/135/
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 {
}
}