Gauge
Overview
This extension class displays a texture that is trimmed towards the left side (depending on a ratio value). This can be used to create a progress bar or a rest-time display.
You control the gauge by changing its ratio
property to a value between 0 and 1.
var gauge:Gauge = new Gauge(texture);
gauge.ratio = 0.5;
addChild(gauge);
In the sample on the right, the gauge is just the yellow texture. By displaying this object in front of a grey background and border, it looks as if this was a container that grows empty.
Changelog
Source Code