Home » Development » Flex » Flex Tips »

October 14th, 2008

FlexTip: Add Thumbs to Mx:Slider programatically

FlexTip: Add Thumbs to Mx:Slider programatically

I have some new Flex Tip for you. Maybe you have found it already if you have tried add new thumbs to Mx:Slider (HSlider, VSlider) programatically. There can be various “small” problems. Or maybe there is just another way
What I’ve tried is increase thumbCount property and add new value to values property. But [...]

Posted in Flex / AIR / Flash Coaching, Flex Tips, Flexets
By Franto
read more
August 28th, 2008

FlexTip: WordWrap for mx:Text

FlexTip: WordWrap for mx:Text

Maybe it is easy, maybe not, but I do not think it’s straitforward and logical. If you want to set word wrapping for mx:Text you have to set width. If you did not do this, whole text will be in 1 row and not whole text can be visible. So just set width to [...]

Posted in Flex Tips
By Franto
read more
August 27th, 2008

FlexTip: Preventing CheckBox selection with Key.SPACE

FlexTip: Preventing CheckBox selection with Key.SPACE

This is quick Flex Tip. If you do not need or do not want change CheckBox selection with space key, you can set mouseFocusEnabled to false.

<mx :CheckBox mouseFocusEnabled="false"/>

If you know about any other solutions, let us know.

Posted in Flex Tips
By Franto
read more
May 29th, 2008

FlexTip - Stop displaying Focus

FlexTip - Stop displaying Focus

Here is quick Flex Tip. If you don’t want to display focus rectangle on pressing TAB key, you should use focusEnabled = false;
It’s quick solution for 1 component, but if you want disable focus for all components in your application just use focusManager.deactivate();
That’s all, hope it helps to anyone…

New: Thanks to Marc Hughes for pointing [...]

Posted in Flex Tips
By Franto
read more
July 29th, 2007

FlexTips: How to add Bitmap to UIComponent

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

Posted in Flex Tips
By Franto
read more
July 27th, 2007

FlexTip: Problem with masks and scalable Flash

FlexTip: Problem with masks and scalable Flash

This may be useful for someone who does not read Flex documentation in more detail. When you have content which is masked and you allow scale for your application, mask will not scale if it is not added to display list (it’s written in documentation ). So if you have such problem, add [...]

Posted in Flex Tips
By Franto
read more
July 24th, 2007

FlexTip: XMLSocket connect() after disconnect from server

FlexTip: XMLSocket connect() after disconnect from server

Here is another Flex tips I came across in our project. I don’t know if this was in AS2.0 as well, but in AS3.0 when you receive event that XMLSocket is disconnected (server is disconnected, your net connection is broken), you can’t call xmlsocket.connect() immediately, but you have to wait for a while. So add [...]

Posted in Flex Tips
By Franto
read more
July 18th, 2007

FlexTip: mx:Text vs. mx:TextArea

FlexTip: mx:Text vs. mx:TextArea

Here my first tip for Flex developers. Maybe many of you know, maybe it will be helpful for someone. If you want make custom component, let’s say “Message dialog” which should be resized according text, nothing is easier. Just use mx:Text, not mx:TextArea. mx:Text has ability to resize according its text property. If you don’t [...]

Posted in Flex Tips
By Franto
read more
Images is enhanced with WordPress Lightbox JS by Zeo
Clicky Web Analytics