Archive for the ‘Flex Architecures’ category

Embedding fonts with MX components

July 23rd, 2011

If you use SDK 4.x and you want to display embeded font in MX component (e.g. mx:Text) but your text probably will not appear. It is caused by the new Flash Text Engine. There are two solutions to this problem: » Read more: Embedding fonts with MX components

How to set hand cursor for a component in a skin?

July 19th, 2011

If you want to set hand cursor for a component in its skin you will probably try to add buttonMode = “true” in a root tag of the skin. But it won’t work. To make it happen you need to set buttonMode property by reference to a host component:

override protected function initializationComplete():void
{
    hostComponent.buttonMode = true;
}

In order to make hand cursor appear for some components you may also need to set other properties like useHandCursor or mouseChildren.

Transparent spark s:List

April 26th, 2011

Question: How to make the s:List transparent?

First try: I looked for backgroundAlpha property but there was no such.

Solution: Finally (by accident) I found contentBackgroundAlpha property and it works for me! :)

Lista z płynnym przewijaniem

January 8th, 2010

W tym przykładzie pokażę jak zbudować listę z płynnym przewijaniem (scrollem). Pisząc jedną z aplikacji musiałem użyć listy do wyświetlania obrazków o dużej wysokości. Niestety przewijanie w liście działa skokowo, tzn. przesuwając suwak, lista przeskakuje do kolejnych elementów.
» Read more: Lista z płynnym przewijaniem

Flexmaniaks on Facebook