FlexTips: How to add Bitmap to UIComponent

Sunday, July 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

Get a Trackback link

No Comments Yet

You can be the first to comment!

Live Preview

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

CommentLuv Enabled

Images is enhanced with WordPress Lightbox JS by Zeo