为什么这里stage.stageWidth不能用呢?
本帖最后由 Atom2004 于 2011-11-21 12:47:48 编辑 在ActionScript3的文档类的构造函数里面有一句这样的语句。
paintBmpData = new BitmapData(stage.stageWidth,stage.stageHeight,true,0x0FFFFFF);
paintBmp = new Bitmap(paintBmpData,'auto',true);
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at MTTestMC/Init()
at MTTestMC()
at MTTest()
paintBmpData = new BitmapData(800,600,true,0x0FFFFFF);