我已将图像资源 (Background.jpg) 导入到我的 Flash CS5 库中,并将其作为基类型为 BitmapData 的类 Bitmap 导出到 ActionScript。
以下代码返回以下错误:
backgroundTexture = new Shape();
backgroundTexture.graphics.beginBitmapFill(Background);
backgroundTexture.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
backgroundTexture.graphics.endFill();
1067:将 Class 类型的值隐式强制转换为不相关的类型 flash.display:BitmapData。
那么错误是什么?