我已经将图像资源(Background.jpg)导入到我的Flash CS5库中,并将其导出为ActionScript类,并将其作为类Bitmap与基类型的BitmapData一起导出。ActionScript - 使用BitmapData库资产的BeginBitmapFill?
下面的代码返回以下错误:
backgroundTexture = new Shape();
backgroundTexture.graphics.beginBitmapFill(Background);
backgroundTexture.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
backgroundTexture.graphics.endFill();
1067: Implicit coercion of a value of type Class to an unrelated type flash.display:BitmapData.
所以有什么错误?
哇,我不敢相信我没有意识到......多么尴尬。谢谢zzzBov。 – TheDarkIn1978
@ TheDark1978年,它发生在我们身上。 – zzzzBov