I'm working on an interactive game and need to show 2 teams score's in real time in graphical form. For now I'm just going to use the keyboard as input, but eventually it will be something else.

What I need is for there to be a bar graph that goes up each time a certain key is clicked. So if team 1 is the A key and team 2 is the L key, I need two bar graphs to go up each time A or L is pushed. If no key is pushed for a period of time (3 seconds or so) I need the graphs to slowly go back down.

I'm pretty new at actionscript, so any ideas or help or other things to look at is very appreciated! thanks in advance!