Archive for February 29th, 2008

29
Feb

Styling Alert controls in Flex using the StyleManager class and setStyle() methods

The following example shows how you can style a Flex Alert control using the static StyleManager.getStyleDeclaration() method, and the setStyle() method.

Full code after the jump.

Continue reading ‘Styling Alert controls in Flex using the StyleManager class and setStyle() methods’

29
Feb

Setting a Button control’s icon to an asset from a SWF file in Flex

The following example shows how you can set a Flex Button control’s icon style to an asset from a SWF file using MXML or ActionScript.

Full code after the jump.

Continue reading ‘Setting a Button control’s icon to an asset from a SWF file in Flex’

29
Feb

Determining if a Flex application has focus using the activate and deactivate events

The following example shows how you can determine if a Flex application has focus or not by listening for the activate and deactivate events on the <mx:Application /> container.

Full code after the jump.

Continue reading ‘Determining if a Flex application has focus using the activate and deactivate events’