Archive for September, 2007

30
Sep

Using a Flex TextArea control as a drop-in item editor

User “Fred” asked a question the other day about using the TextArea as an item editor in an editable, variable line height DataGrid control.

The following example shows how you can use the Flex TextArea control as a drop-in item editor to allow you to easily edit the items in a DataGrid control.

Full code after the jump.

Continue reading ‘Using a Flex TextArea control as a drop-in item editor’

29
Sep

Adding your own custom CheckBox control icons in Flex

The following example shows how you can override the default icon in the Adobe Flex CheckBox control and replace it with a custom embedded graphic.

Full code after the jump.

Continue reading ‘Adding your own custom CheckBox control icons in Flex’

28
Sep

Using the Flex TileList class’s new dataChangeEffect style in Flex 3

The following example shows how you can add nice list effects when items are reordered in a TileList control.

For more information on the new List and Data effects, see “Flex 3:Feature Introductions: List and Data Effects”.

Full code after the jump.

Continue reading ‘Using the Flex TileList class’s new dataChangeEffect style in Flex 3′

27
Sep

Detecting changes to an Object using the Flex ObjectProxy class

The following example shows how you can detect changes to an Object object by listening for the propertyChange event on the ObjectProxy instance.

Full code after the jump.

Continue reading ‘Detecting changes to an Object using the Flex ObjectProxy class’

26
Sep

Using the flash.* classes in MXML

I saw this trick the other day and thought it was pretty handy, so thought I’d save it here for future reference.

The following example shows how you can use the flash.filters classes in your MXML code by creating a new XML namespace.

Full code after the jump.

Continue reading ‘Using the flash.* classes in MXML’

26
Sep

Positioning items in Flex using a constraint based layout

The following examples show how you can position items in an absolute-based layout using the top, bottom, left, right, horizontalCenter, and verticalCenter styles.

Full code after the jump.

Continue reading ‘Positioning items in Flex using a constraint based layout’

26
Sep

Styling the Flex TabNavigator control

The following example shows how you can style the TabNavigator control in Flex using the tabStyleName, firstTabStyleName, lastTabStyleName, and selectedTabTextStyleName styles.

Full code after the jump.

Continue reading ‘Styling the Flex TabNavigator control’

25
Sep

Creating a custom ComboBox item renderer in Flex

The following example shows how you can create a simple ComboBox item renderer which displays multiline items in the ComboBox control’s drop down menu.

Full code after the jump.

Continue reading ‘Creating a custom ComboBox item renderer in Flex’

25
Sep

Creating a simple label function on a Flex ComboBox control

The following example shows how you can format the label in a ComboBox using a custom label function.

Full code after the jump.

Continue reading ‘Creating a simple label function on a Flex ComboBox control’

25
Sep

Specifying a custom label field on a Flex ComboBox control

The following example shows how you can specify a custom label field for a ComboBox control by using the ComboBox class’s labelField property.

The labelField property controls which field in the data provider will be used as the ComboBox item’s label. By default, the labelField property is “label”, although if you are using an XML data provider, you may want to change the labelField property to “@label”, or some other value.

Full code after the jump.

Continue reading ‘Specifying a custom label field on a Flex ComboBox control’

25
Sep

Using the TabNavigator control’s tabOffset style in Flex 3

The following example shows how you can control the horizontal offset of the tabs in a TabNavigator control by setting the tabOffset style.

Full code after the jump.

Continue reading ‘Using the TabNavigator control’s tabOffset style in Flex 3′

24
Sep

Setting a Flex Pie Chart’s start angle

The following example shows how you can change the start angle in a Flex Pie Chart.

Full code after the jump.

Continue reading ‘Setting a Flex Pie Chart’s start angle’

24
Sep

Animating data changes in a Flex Pie Chart

The following example shows how you can animate a pie chart using the showDataEffect effect and SeriesInterpolate class.

Full code after the jump.

Continue reading ‘Animating data changes in a Flex Pie Chart’

24
Sep

Creating a simple Flex Accordion inline header renderer

The following example shows how you can create a simple, inline header renderer in Flex which uses the Button control for a Flex Accordion header.

Full code after the jump.

Continue reading ‘Creating a simple Flex Accordion inline header renderer’

23
Sep

Triggering effects when a container is resized

The following example uses a resizeEffect effect along with a Resize tween effect (<mx:Resize />) to create a smooth tween effect whenever the panel is resized.

Full code after the jump.

Continue reading ‘Triggering effects when a container is resized’




September 2007
M T W T F S S
« Aug   Oct »
 12
3456789
10111213141516
17181920212223
24252627282930

Badge Farm

  • Firefox 2
  • Powered by Redoable 1.2
  • Feeds burnt by Feedburner
  • Feed