<mx:Application width="300" height="200">

而在纯ActionScript应用中,要在类声明前使用SWF元数据(SWF metadata)属性:

package
{
 [SWF(width="300", height="200")]
 public class MyApp extends Sprite
 {
   ...
 }
}

这里的值必须为像素大小,不能使用百分比如100%这样的值。

原文:Setting the width and height of a pure-ActionScript application