If you're using MXMLC (the MXML and ActionScript 3 stand alone, command line compiler provided with the free Flex 2 SDK) to compile your ActionScript 3 SWFs, you can use the SWF metadata tag to set common properties for your movie. The SWF metadata tag supports 4 properties
- width
- height
- frameRate
- backgroundColor
Example:
ActionScript Code:
package {
[SWF(width="500", height="450", frameRate="24", backgroundColor="#FFFFFF")]
public class MyApp extends Sprite {
}
}
When compiled, the above makes a SWF 500x450 in size with a background color of white and a framerate of 24.
0 评论:
发表评论