Question

J'essaie donc de dire bmpdata.draw(backgroundRect); à DRAY sur mon Bitmap mon composant, mais Flash Builder me donne et je ne sais pas quoi faire ...

1067: Contrainte implicite d'une valeur de type spark.primitives: Rect à un type sans rapport avec flash.display: IBitmapDrawable. Flex problème

S'il vous plaît aider

Était-ce utile?

La solution

Vous devez utiliser backgroundRect.displayObject. Vous voudrez peut-être ensemble

backgroundRect.displayObjectSharingMode = DisplayObjectSharingMode.OWNS_UNSHARED_OBJECT
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top