Controlling the number of Downloads (?)

Happy Holidays Kirupa!

OK, so I am working on a site (in flash 8) in which files will be made available to download for a set number times.

my vision:

When the site loads, a variable containing the quantity of downloads left will be loaded as well. The stage will contain a “download” button that when pressed, will decrement the number of downloads available for that file. When the “quantity of downloads” variable equals zero, the button will disappear - prohibiting any further downloads.

Does anyone know how I can achieve this without the use of a database? Thanx in advance!