Archive for July 18th, 2007

18
Jul

Detecting which button a user pressed to dismiss an Alert dialog

In the previous post we looked at creating and displaying a basic, bare[ly usable], Alert dialog. Now we’ll look at how to determine which button a user pressed to dismiss the dialog.

Continue reading ‘Detecting which button a user pressed to dismiss an Alert dialog’

18
Jul

Using the Alert control

The following code shows a very basic method for displaying an Alert dialog in a Flex application. As this is a very simple example, it doesn’t show how to properly determine which button the user clicked to dismiss the dialog box, nor does it show other techniques such as modal versus non-modal dialog boxes. I’ll try and cover those in later entries.

Full code after the jump.

Continue reading ‘Using the Alert control’

18
Jul

Formatting data tips in a Slider

I was playing around with the HSlider the other day and needed to format the data tool tip. Thankfully, the Flex SDK makes it very very easy, all you need to do to override the default data tip using the dataTipFormatFunction property. By simply passing in the name of a user-defined function, you can format the data tip text however you want (such as prefixing dollar signs or what have you).

Full code after the jump.

Continue reading ‘Formatting data tips in a Slider’