Home » Development » Flex » Flex Tips »

November 3rd, 2009

Numeric sorting of Flex DataGridColumn

This is quick solution for Flex coders. If you want to sort column in DataGrid, default sorting is sorted by String and not Number. If you have just one numeric column, you can create custom sort function and set sortCompareFunction for given DataGridColumn. If you have more such columns and you dataProvider is ArrayCollection which consists of many object, better solution is override DataGridColumn and implement compareFunction inside this class.

Posted in Flex Tips
By admin
read more
Október 13th, 2009

Unable to export SWC oem

Unable to export SWC oem

I have few times lately this error in Flex Builder and there were at least 2 cases, which cause this error to happen. So maybe it will help you to find your problem. Some file (in my case .flexLibProperties) has SVN conflicts, so you need to resolve conflicts and merge them to solve this “Unable [...]

Posted in Flex, Flex Tips
By admin
read more
August 18th, 2009

Problem with XML attributes in AS3.0

Problem with XML attributes in AS3.0

I’ve found today some small problem with setting XML attribute for my current application. I’m generating HTML source code via XML, because both are tags languages and I have found this nice problem. Imagine you have DIV tag with class attribute set like this:

Posted in Flash Tips & Tricks, Flex Tips
By admin
read more
Február 4th, 2009

AS3 Conditional Breakpoint – enterDebugger()

AS3 Conditional Breakpoint – enterDebugger()

I have to confess I didn’t know about great function enterDebugger() in flash.debugger package. If you ever want to have conditional breakpoint you can do it programatically. Just add this statement to you code and debuger will stop as it there would be normal breakpoint. So you can use it in IF statement and call it just when some conditions are met. I think I will use this function a lot from now on :)

Posted in Flash, Flex Tips
By Franto
read more
Október 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 there [...]

Posted in 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 fix [...]

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.   If you know about any other solutions, let us know.

Posted in Flex Tips
By Franto
read more
Máj 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 [...]

Posted in Flex Tips
By Franto
read more
Júl 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
Júl 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 you mask [...]

Posted in Flex Tips
By Franto
read more


Subscribe to my RSS feed to your email:

Images is enhanced with WordPress Lightbox JS by Zeo