Tag Archive for 'mode'

31
Oct

Pausing the animation in an indeterminate ProgressBar control

The following example shows how you can pause the indeterminate animation in a Flex ProgressBar control by setting the mode property to “polled” or “manual”. You can resume the animation by setting the mode back to “event”.

Full code after the jump.

Continue reading ‘Pausing the animation in an indeterminate ProgressBar control’

07
Aug

Setting the ProgressBar control’s labelPlacement, mode, and conversion properties

Here was a neat trick I learnt today. You can set a ProgressBar control’s labelPlacement property to “center” and have it appear within the progress bar itseslf. Pretty handy!

And just because that alone wasn’t really an interesting entry, I created a second progress bar which uses “polled” mode to determine how much of an FLV has loaded (it monitors the bytesLoaded and bytesTotal properties of the UI object specified in the source parameter, which in this case is the VideoDisplay control). Finally I tweaked the label property to add the units (kilobytes) and set the conversion property to 1024 to convert from bytes to kilobytes. Whew!

Full code after the jump.

Continue reading ‘Setting the ProgressBar control’s labelPlacement, mode, and conversion properties’