
Easy solution for one annoying HGroup/VGroup layout issue
Text elements in horizontal and vertical layouts are sometimes coward. When text is small, layout looks nice:


If the text is controlled by user and layout is not smart enough, it can look this way:

“Logout” button…
Lots of bug fixes in Spark Tree
We have heavily used the Spark Tree in our project and have fixed plenty of bugs. Feel free to get the updated version.
P.S: Please report about possible problems with the component in comments.
Storing icons in external ZIP and seamless work with composite icons
There are a lot of ways to work with icons in Flex, e.g.:
- Use
@Embed(...)directive inline - Use
[Embed(...)]metatag and store all icons in class likeAssets.as
All this is good until you have too much assets…
Spark item renderer blinks on hover
Custom Spark item renderer may blink when it gets hovered. This happens when item renderer uses states. Here is the example:
BadItemRenderer gets removed and added back on hover. GoodItemRenderer is not removed on hover because it overrides…
Cloud Layout
Here is the CloudLayout.as [plain] that does nice Web 2.0 tag cloud:
Fit buttons in the toolbar
Sometimes buttons does not fit in the toolbar:

Spark Tree – faster, with icons and text colors
I’ve just updated the Spark Tree custom component. Here are the improvements and new features.
Spark Tree
Unfortunately Flex 4 does not have Spark Tree and MX Tree has 99 bugs at this moment.
In our project we were in need of Spark-based Tree for some time so inspired by Alex Harui I wrote…
Runtime icons for Flex components
Bitmap or BitmapData can not be used as icon in Flex components like MX Button because they want Class that will instantiate as BitmapAsset.
Solution
Create cache of special classes. Each of them will be able to become an icon.…


