Archive for August 8th, 2007

08
Aug

Making auto-repeat Button controls using the autoRepeat property and buttonDown event

A simple example of creating auto-repeat Button controls that dispatch the buttonDown event as long as the user is pressing the button.

Continue reading ‘Making auto-repeat Button controls using the autoRepeat property and buttonDown event’

08
Aug

Checking the user’s Flash Player capabilities using the flash.system.Capabilities class

There are a lot of times when you may want to know what version of the Flash Player plug-in your visitors are using. Or perhaps you want to know their screen resolution, operating system, language, whether they have accessibility or an IME. Finding all this out is simple thanks to the Flash Player’s flash.system.Capabilities class.

The following application will show how you can grab all the capabilities of the user’s Flash Player and display them in an easy-to-read DataGrid control.

Full code after the jump.

Continue reading ‘Checking the user’s Flash Player capabilities using the flash.system.Capabilities class’

08
Aug

Positioning a label within a progress bar using the ProgressBar.labelPlacement property

We’ve looked at this briefly in a previous entry, but here’s a quick look at each of the five options for the ProgressBar.labelPlacement property.

Full code after the jump.

Continue reading ‘Positioning a label within a progress bar using the ProgressBar.labelPlacement property’

08
Aug

Positioning an icon within a button using the Button.labelPlacement property

Probably not too surprising to anybody, but you can easily control the location of an icon within a Button control by setting the button’s labelPlacement property.

Full code after the jump.

Continue reading ‘Positioning an icon within a button using the Button.labelPlacement property’