【发布时间】:2023-04-01 21:35:01
【问题描述】:
我已将图像资源 (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: 对值的隐式强制 type 归类为不相关的类型 flash.display:BitmapData.
那么错误是什么?
【问题讨论】:
标签: actionscript-3 flash bitmap assets