开发者

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

开发者 https://www.devze.com 2022-12-26 07:19 出处:网络
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...

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

精彩评论

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