Any idea how I could make a button in flash to download an MP3 file from my server, then increment a dynamic text field by 1 everytime it is downloaded. I dont want the user to be able to increment the counter if they accidently click more than once…
Basically I have a page for my band, when the visitor visits the sounds section there will be 1 song for download. Next to the download button there will be a number telling the user how much times the MP3 has been download already… Like on this message board when someone uploads a .fla for download, it says how many times it has been downloaded by people, catch my drift ?
I need it to do that aswell as only let the user click the button once.
Yeah thats what I need, i’m just lookin for some sort of PHP script now, theres a hit counter script on flash-db, i’m just trying to figure out if i could modify it to do what I need
I would love to see the files please yes.
Hello again, I built that part into my site but i cant get it to work, i think i’ve followed your working example but the counter doesnt increment, the sounds section is loadmovied into the main movie? would that affect the code in your example ?
Yeah i’ll post my .fla but i think I know whats up, i already have a counter on the site using the same code etc. So I tried using PHPcounter2.php etc and using the ‘Counter2’ on the text field, changed all the AS to point to the renamed ‘2’ files but it still doesnt work, it makes the main site counter goto 1, and the button press counter doesnt change at all.
The site is here - www.method-band.co.uk but I set the site back to normal after I couldnt get the button counter to work.