Code:
on (release) {
getURL ("[URL unfurl="true"]http://www.yoursitename.com/yourfile.zip";);[/URL]
}
......there was a horribli ";" in there before.
Anyway, here's a very basic counter. You've got 4 files here:
1.
the HTML. Notice the META tag at the top of the source code. This means that the swf is not cached on the users browser such that every time they visit your site the dat file will be incremented successfully.
2.
the DAT file. This holds the number of hits. You can edit this in Notepad before uploading to add thousands of hits before anyone has even been to the page.
3.
the CGI file. Don't edit this at all. If it doesn't work, either your server doesn't allow you to use cgi or the first line is wrong. The first line directs the file to the location of the server's perl software, see your server's Perl/CGI FAQ for the syntax of this line.
4.
the SWF file. Frame3 contains the LOADVARIABLES action which executes the CGI file. Change the targetting of this according to the where you locate your CGI file.
Finally, you need to CHMOD the files to 755 to ensure they work properly.
OK? The files are below, the ZIP file contains the fla.
dave davdesign@pinkzeppelin.com
^^^^^^^^^^^^^^^^^^^^^