Speed bar using as3

Hi Guys, can any of you tell me how to develop a speed bar using as3? according to that speed i need to throw the ball? for example speed meter which is there in normal Cannon Ball game? please tell me how to do it as early as possible.

Thanks in advance