FlexTips: How to add Bitmap to UIComponent
Sunday, July 29th, 2007- AS3Tip: Tween in AS3.0 project
- FlexTips
- FlexTip: Preventing CheckBox selection with Key.SPACE
- FlexTip: mx:Text vs. mx:TextArea
- FlexTip: Problem with masks and scalable Flash
- FlexTip: WordWrap for mx:Text
- Useful Flex tips
- FlexTip - Stop displaying Focus
- FlexTip: Add Thumbs to Mx:Slider programatically
- FlexTips: How to add Bitmap to UIComponent
- FlexTip: XMLSocket connect() after disconnect from server
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: flex.Flex Tips





No Comments Yet
You can be the first to comment!
Live Preview
Leave a comment