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

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

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…

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:


View Source

Horizontal Multiline Layout

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