Meters and gauges are really good to convey some information really rapidly, and that is why they are used often in dashboards. They actually give more than just one piece of information; they also give an idea of the range the value can take and also if animated, it can give an idea of how much the value fluctuates.
Having some notion about trigonometry and the unit circle (refer to http://en.wikipedia.org/wiki/Unit_circle) can be useful for this recipe. Also, some of the code will be based on Adobe evangelist Lee Brimelow's wedge class available at http://www.leebrimelow.com/?p=430, so it might be worth a look.
The following are the steps required to build a meter:
In this case the data is only one value so we don't need to create a data structure for it. We can start right away by creating a function in
Meter.as
to create arcs of circles. We call it_drawArc
. It takes a shape and a radius as parameters and will draw an arc in the shape...