Archive for November 6th, 2007

06
Nov

Setting the gap around the required indicator in a Flex form

The following example shows how you can set the gap around the required indicator in a Flex form by setting the indicatorGap style, as seen in the following snippet:

<mx:Style>
    FormItem {
        indicatorGap: 24;
    }
</mx:Style>

Full code after the jump.

Continue reading ‘Setting the gap around the required indicator in a Flex form’

06
Nov

Exploding wedges in a Flex PieChart control

The following example shows how you can explode specific wedges in a PieChart control when the user clicks an item in the chart.

Full code after the jump.

Continue reading ‘Exploding wedges in a Flex PieChart control’

06
Nov

Disabling live scrolling on a Flex TextArea control

The following example shows how you can toggle live scrolling on a TextArea control in Flex by setting the liveScrolling property.

Full code after the jump.

Continue reading ‘Disabling live scrolling on a Flex TextArea control’

06
Nov

Customizing strokes in a Flex PieChart control

The following example shows how you can customize the stroke in a Flex PieChart control by using the PieSeries class’s stroke style and the mx.graphics.Stroke class, as seen in the following snippet:

<mx:PieChart dataProvider="{dp.product}" height="250" width="100%">
    <mx:series>
        <mx:PieSeries id="pieSeries" field="@data">
            <mx:stroke>
                <mx:Stroke color="black" weight="2" />
            </mx:stroke>
            <mx:filters>
                <mx:Array />
            </mx:filters>
        </mx:PieSeries>
    </mx:series>
</mx:PieChart>

Full code after the jump.

Continue reading ‘Customizing strokes in a Flex PieChart control’