Accessibility

TechNote (Archived)

Progress bar high CPU usage

Issue


In Macromedia Flex, a ProgressBar with theindeterminate attribute set to true consumes approximately 1-5% of the CPU to run it's animation. Even when the ProgressBar's visible property is set to false, it can still consume the same amount of CPU. If you create a component that uses the mx:ProgressBar and this is used throughout your application, you can get an increasing amount of CPU usage (in some cases as high as 80%).

Reason


This is due to the fact that the ProgressBar continues to run even though the visible attribute is set to false.

Solution


Set the progress bar visible=false, but also setindeterminate=false.

For example:

<mx:ProgressBar visible="false" indeterminate="false"

AlertThis content requires Flash

To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.

Download the free Flash Player now!

Get Adobe Flash Player

Creative Commons License

Search Support

Document Details

ID:88f4da93

Products Affected:

flex