PDA

View Full Version : [MX] Hit Counter (No CGI or PERL etc..)



Keith130
June 5th, 2003, 05:06 PM
Is there a way to make a hit counter in flash without anyscripting apart from ActionScript?

senocular
June 5th, 2003, 05:07 PM
not for very long

Keith130
June 8th, 2003, 04:28 PM
What do you mean not for very long?

senocular
June 8th, 2003, 04:49 PM
as in the only hit counter you would have would be for the current person viewing the site and only for the time they were there. You could make a counter to check how many times they've visted a section, but outside of that, its gone

You could use the Shared object to do further counting for that one viewer - for every time they came back to the site, but it wouldnt account for other peole

the short of it is no.

Keith130
June 8th, 2003, 05:09 PM
So because I use brinkster would it be possible to use an ASP page that reads from a db or something?

Jubba
June 8th, 2003, 06:40 PM
yes

Delsaber
June 8th, 2003, 08:36 PM
Of couse you can use ASP and Flash to make a counter. I don't know how to yet, as I have just acquired the Flash MX program.

Raydred
June 9th, 2003, 12:29 AM
basically you would use the send method to a url... then in your asp script you save the hits somehow, and then you would call that script to get the hits using the loadVars method... =)

thats the idea =)

i could write a flash example for you, but i use ASP.net , not ASP.. but i can show you the flash AS you'll need.


look at this first. Its in "Php" but the same princpals apply the actionscript will be basically the same. =)

http://www.kirupa.com/developer/actionscript/asandphp.htm

Keith130
June 9th, 2003, 02:28 AM
I use ASP.NET too but I can never get any of my scripts to work on brinkster. Im not very good at ASP though so do you know anything about it?

Raydred
June 9th, 2003, 02:35 AM
do you upload the bin directory to the server? and is that direcory a virtual directory running >net applications? thats why it might not be working.

remember your code behind (if you use it) gets compiled into the dll in the bin dir of your project.

Keith130
June 9th, 2003, 12:00 PM
Do you use Viusal Studio .NET? I use Web Matrix and it doesnt have a bin directory created?