FlexTips: How to add Bitmap to UIComponent

Nedeľa, Júl 29th, 2007
FlexTips: How to add Bitmap to UIComponent

I didn’t know it, but here is solution. Best UIComponent for Bitmap is mx:Image :) (no surprise), You can just write:

<mx :Image creationComplete=”(event.currentTarget as Image).source = new Bitmap( bitmapData)”/>

So for mx:Image except source=”path” you can add reference to Bitmap as well.
Enjoy


tagged under: .

ABOUT THIS AUTHOR

No Comments Yet

You can be the first to comment!

Sorry, comments for this entry are closed at this time.

Images is enhanced with WordPress Lightbox JS by Zeo