Archives by date

You are browsing the site archives by date.

Year summary

It was a good year, thank you for reading this blog – hope it is useful at least sometimes :) Starting from the 20-th August 2010 when this blog was opened:

  • More than 2900 people came and read more than

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

AMFPHP in convinient and reliable way

Remoting with AMFPHP greatly simplifies the client-server application logic. Now I’m going to simplify it’s usage. No responders, no listeners or clients. Just one call(...) and one callback function:

  1. private function init():void
  2. {
  3.     new

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 is invisible, search

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 because:

  • Each

Cloud Layout

Here is the CloudLayout.as [plain] that does nice Web 2.0 tag cloud:


View Source

Horizontal Multiline Layout

Sometimes it is necessary to place elements horizontally (like HorizontalLayout) in several lines instead of just one line:

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 it:

Download