小编mlt*_*ltt的帖子

为什么我的Actionscript 3类中的stage未定义,即使我已经导入了Stage类?

 package    {

 import flash.display.Stage;

 public class MyGlobal {

  public static  var CX:Number = stage.stageWidth / 2;
  public static  var CY:Number = stage.stageHeight / 2;  

 }

}
Run Code Online (Sandbox Code Playgroud)

错误是"1120: Access of undefined property stage."为什么?

stage actionscript-3

3
推荐指数
1
解决办法
9009
查看次数

标签 统计

actionscript-3 ×1

stage ×1