Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Do you now how to make my counter and a downloading web page?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Do you now how to make my counter and a downloading web page?
Thank you!
 
hi

COUNTER: does your server support php/cgi/asp?

DOWNLOADING PAGE: if you mean 'how do I make button links in flash to download something', you just create a button and add the following actions to it:

on (release) {
getURL ("}


dave
davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
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

^^^^^^^^^^^^^^^^^^^^^
 
one problem can be created with the getURL command, if you use you'll receive an error because the file something.zip does not exists.

what should you do you'll have to acces you domain first.


greetz orbit_ph working on flash and vb6
my game is coming soon
if you have tips send them to me

in the mean time check out
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top