Home » Development » Flex » Flex Tips »
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 TipsBy admin
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 to [...]
Posted in Flex, Flex TipsBy admin
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 TipsBy admin
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
By Franto
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.
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 [...]
By 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, [...]
Posted in Flex TipsBy Franto
Problems with latest stable Flex 4 nightly build
Loosing children interactivity after setting perspectiveProjection
Wordpress plugin Permalinks Changer
Numeric sorting of Flex DataGridColumn
More Google Wave invitations
$1000 for Wordpress plugin
Kseniya Simonova – Sand Animation
Goodbye FlashDen, hello ActiveDen
Major update of Goalscape AIR application
Why my sites were not indexed by Google?
- Swati : Thinking to link back to this site..................... ...
- Swati : So Sweet............... Like a beautiful girl in love ...
- GOVERNMENT : A million thanks and a billion kudos! You've saved me a whole day's bu ...
- Cesar : Your post was a life saver. Thanks! ...
- Matthew : You're climbing in the google search... thanks for saving me a lot of ...
- Haggis : You've just saved me a lot of frustration. 1 internet to you, sir. ...
- Daniel Sedlacek : @Achim: this should help, it's Pv3D 2.0 version with enhanced texturin ...
- Daniel Sedlacek : @Achim: This should help, it's PV3D 2.0 and it provides more control o ...




