开发者

How to use bmpdata.draw(component); on Flex 4 SPARK components?

So I try to say bmpdata.draw(backgroundRect); to dray on my Bitmap my component but Flash Builder gives me this and I do not know what to do...

1067: Implicit coercion of a value of type spark.primitives:Rect to an unrel开发者_如何转开发ated type flash.display:IBitmapDrawable. Flex Problem

Please help


You have to use backgroundRect.displayObject. You might wanna set

backgroundRect.displayObjectSharingMode = DisplayObjectSharingMode.OWNS_UNSHARED_OBJECT
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜