Home » Development » Flex » Flex Tips »
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 [...]
By Franto
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 TipsBy Franto
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 TipsBy Franto
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 TipsBy Franto
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
By Franto
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 TipsBy Franto
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 TipsBy Franto
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 TipsBy Franto
- Wallpaper for you - Christmas Wallpapers
- FlexSkinning: Skinning and Styling of Flex Components
- AIR Tip: Flash movie is not rendered in AIR 1.5 HTML in Fullscreen
- Wallpaper for you - Watter Lilly
- Become Webmaster
- AIR Tip: ContextMenuItem can crash AIR app on Windows
- Wallpaper for you - Orchid Dream
- Wallpaper for you - Rose Autumn
- FlexTip: Add Thumbs to Mx:Slider programatically
- AS3.0 KeyboardEvent WooDoo
- Milap Parekh : hi,I want to start work with flash & flex.Can i use flash & f ...
- Omid : Hi Franto , Happy Holidays :) I hope you would catch your best d ...
- Geejay Arriola : my god, they're so beautiful. i want to use the waterlily for a greet ...
- Ben : if i hold up, i cant press left. if i hold left, i cant press up. ...
- video conferencing : This is the greatest post I have come across so far.I am really please ...
- Jeremy : Thanks, can't wait to see the next posts from this serie! ...
- judah : All combinations work on MacOSX, Flash Player 10 and Firefox 3.0.4. ...
- mi4k : Good Job, Dano :-) ...




