AS3 game codes needed for a progressive inventory

[LEFT]I am attempting to make a simple point and click RPG game with AS3. However I am not finding any source codes with resources that increases with time such as building a mine in an empty field produces metals per hour. Upgrading that mine and building more mines will produce even more metals. I need to establish the base resource rates before I can move on. I consider myself a no0b. Your help is appreciated.

[COLOR=#000000][FONT=Trebuchet MS]It would help if i knew the name of the variable I am looking for? [/FONT][/COLOR]

Thanks.[/LEFT]