Tag Archive for 'application'

14
Mar

Setting or clearing the application background image in Flex

The following example shows how you can remove the default gradient background image for a Flex application by setting the backgroundImage style.

Full code after the jump.

Continue reading ‘Setting or clearing the application background image 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’

22
Feb

Detecting when a mouse leaves a Flex application

The following example shows how you can detect when the mouse leaves the bounds of a Flex application by listening for the stage object’s mouseLeave event.

Full code after the jump.

Continue reading ‘Detecting when a mouse leaves a Flex application’

20
Feb

Disabling user input in a Flex Application

I’ve seen this come up a few times in various lists, and figured maybe somebody out there may find this useful.

The following example shows how you can prevent user input in a Flex application by setting the enabled property to false in the <mx:Application /> tag, or by setting the Application.application.enabled property.

Any suggestions? Leave them in the comments!

Full code after the jump.

Continue reading ‘Disabling user input in a Flex Application’

18
Sep

Setting a Flex application’s style name

The following example shows how you can use the styleName style in a Flex Application to remove the background image, set the background color to white and left aligns the content.

To quote the Flex 2.0.1 documentation, “Overriding the default Application container styles“:

The Flex default style sheet defines a plain style name that sets all padding to 0 pixels, removes the default background image, sets the background color to white, and left-aligns the children.

Full code after the jump.

Continue reading ‘Setting a Flex application’s style name’