Archive for February, 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’

28
Feb

Using embedded fonts with the Panel container in Flex

The following example shows how you can use an embedded font with the Flex Panel container so that a Panel container can be rotated or faded without the text “disappearing”. The trick here is to set the panel’s titleStyleName style to a custom style which sets the font family to the embedded font.

Full code after the jump.

Continue reading ‘Using embedded fonts with the Panel container in Flex’

28
Feb

Displaying the sort arrow in a Flex DataGrid control without having to click a column

I’ve seen this question come up a few times recently in various forums/lists and even in my blog comments (see “Changing the default sort arrow skin on a Flex DataGrid control”).

The following example shows how you can display the sort arrow in a DataGrid control in Flex without having the user click on a column header in the DataGrid control.

Full code after the jump.

Continue reading ‘Displaying the sort arrow in a Flex DataGrid control without having to click a column’

27
Feb

Setting effects with ActionScript in Flex

The following example shows how you can set effects on a Flex Image control using ActionScript by setting the showEffect and hideEffect effects using the setStyle() method.

Full code after the jump.

Continue reading ‘Setting effects with ActionScript in Flex’

26
Feb

Displaying a Tree control as a pop up for a Flex PopUpButton control

The following example shows how you can use a Tree control as a PopUpButton control’s pop up in Flex.

Full code after the jump.

Continue reading ‘Displaying a Tree control as a pop up for a Flex PopUpButton control’

25
Feb

Creating a ControlBar container in Flex using ActionScript

The following example shows how you can create a simple Panel container with a nested ControlBar container in Flex using ActionScript.

Full code after the jump.

Continue reading ‘Creating a ControlBar container in Flex using ActionScript’

25
Feb

Aligning items vertically in a ControlBar container in Flex

In a previous example, “Aligning items horizontally in a ControlBar container in Flex”, we saw how you could align items horizontally within a ControlBar container by setting the horizontalAlign style.
The following example shows how you can align controls vertically in a Flex ControlBar container by setting the verticalAlign style.

Full code after the jump.

Continue reading ‘Aligning items vertically in a ControlBar container in Flex’

24
Feb

Aligning items horizontally in a ControlBar container in Flex

The following example shows how you can align controls in a Flex ControlBar container by setting the horizontalAlign style.

Full code after the jump.

Continue reading ‘Aligning items horizontally in a ControlBar container in Flex’

23
Feb

Changing the default sort arrow skin on a Flex DataGrid control

The following example shows how you can change the sort arrow skin on a DataGrid control in Flex by setting the sortArrowSkin style.

Full code after the jump.

Continue reading ‘Changing the default sort arrow skin on a Flex DataGrid control’

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’

21
Feb

Creating a custom label function on a Flex PopUpMenuButton control

The following example shows how you can use an XML data provider on a PopUpMenuButton in Flex and create a custom label function using the labelFunction property.

Full code after the jump.

Continue reading ‘Creating a custom label function on a Flex PopUpMenuButton control’

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’

20
Feb

Creating custom timers by extending the Timer class

In a previous example, “Creating timers using the Timer class”, we saw how to create simple timers using the Timer class and listening for the timer and timerComplete events.

The following examples show how you can extend the Timer class to add methods and properties to the Timer object, which allow you to pass additional data to the event handlers.

Full code after the jump.

Continue reading ‘Creating custom timers by extending the Timer class’




February 2008
M T W T F S S
« Jan   Mar »
 123
45678910
11121314151617
18192021222324
2526272829  

Badge Farm

  • Powered by Redoable 1.2
  • Cornify
  • Feeds burnt by Feedburner
  • Feed