AS3如何设置初始阶段大小

Mec*_*ash 3 flash flashdevelop stage actionscript-3

如果我使用FlashDevelop工具在纯AS3中进行开发,如何设置初始阶段大小(高度/宽度)?

Bar*_*klı 11

您可以右键单击项目并转到属性以在那里设置维度,也可以将以下内容放在主类声明中:

[SWF(width="1280", height="800", backgroundColor="#000000", frameRate="30")]
public class Main extends Sprite 
{
...
}
Run Code Online (Sandbox Code Playgroud)