FlexTips: How to add Bitmap to UIComponent

July 29th, 2007 at 04:12pm Administrator

Flexets Forum - learn Flex / AIR / Flash / ActionScript

If you're new here, you may want to subscribe to my RSS feed. If you like my site, consider linking back. I prefer text "Free Flash Tutorials" to http://www.franto.com
Thanks for visiting my site! If you need anything just contacting through Contact page

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

AddThis Feed Button

Entry Filed under: , , , ,


Do you want to receive fresh news from my site?
Subscribe to my RSS

»Related posts:



Leave a Reply