views:

138

answers:

1

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 unrelated type flash.display:IBitmapDrawable. Flex Problem

Please help

+1  A: 

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

backgroundRect.displayObjectSharingMode = DisplayObjectSharingMode.OWNS_UNSHARED_OBJECT
sharvey