Flex

Spark AdvancedDataGrid

I have used the logic from Spark Tree to build AdvancedDataGrid based on Spark DataGrid and it seem to work nice:


View Source

Since AdvancedDataGridcontains a few code and uses a lot of Spark Tree logic I’ve…

Sorting images by color

Here is a quick example how to sort images by color.

View source

Basically I just sort images by hue of the major image color. The issue is how to get that color. I get some image pixels, clusterize…

Android USB driver

If you plan to test the amazing new Flash Builder Android features and can’t install the USB driver for your phone – just install the PdaNet. It will smoothly put the driver in place and you will be able…

Pronto 4

I’m happy to present the project I’ve been working on for the last 2 years.

FTheme.com launch

FTheme.com is my new library that hopefully will make a small revolution in Flex 4 styling and skinning. New application look can be created in Notepad, loaded at runtime and change everything from application background bitmap fill to the…

Spark Tree on GitHub

I’ve just uploaded Spark Tree component to the GitHub so if you’ve got some updates or bug fixes – please send pull requests :) Also the package is changed – now it’s com.sparkTree.

Download SparkTree.swc
Download source code

Flash Builder Buritto – code templates and content assist workaround

Adobe has recently released a preview version of new Flash Builder – Buritto that has many great features including code templates. Here are my ActionScript code templates so far (download templates.xml to import):

  • commitProperties
  • createChildren
  • getterNoChange
  • getterSetterWithEvent

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 like Assets.as

All this is good until you have too much assets…