ok…It’s just like every other counter: flash calls a php file which will open a txt file, increase the number in it and write it to the same file and if needed returns the number. The only difference is that the php needs to be called when the sound starts playing.
$count = file_get_contents("count.txt");
$fp = fopen("count.txt", "w+");
Now you should make a text file named “count.txt” and type a number ‘0’ in it (I’m not sure if this is necessary but just in case) and change it’s permissions to 777 when you upload the file to your server.
Now in flash you need to trigger the php file once the sound starts loading.
So for the buttons that should load a sound add this action:
Just make sure that the file in the quotes is the php file…
PS! There should be a hit counter tute coming soon.