# \[MX\] Hit Counter (No CGI or PERL etc..)

**URL:** https://forum.kirupa.com/t/mx-hit-counter-no-cgi-or-perl-etc/22589
**Category:** flash
**Created:** [June 5, 2003, 9:06pm UTC](https://forum.kirupa.com/t/mx-hit-counter-no-cgi-or-perl-etc/22589 "2003-06-05T21:06:22Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Keith130](https://avatars.discourse-cdn.com/v4/letter/k/b38774/32.png) [@Keith130](https://forum.kirupa.com/u/Keith130)
#### Post date: [June 5, 2003, 9:06pm UTC](https://forum.kirupa.com/t/mx-hit-counter-no-cgi-or-perl-etc/22589/1 "2003-06-05T21:06:22Z")

</div>

Is there a way to make a hit counter in flash without **any** scripting apart from ActionScript?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 5, 2003, 9:07pm UTC](https://forum.kirupa.com/t/mx-hit-counter-no-cgi-or-perl-etc/22589/2 "2003-06-05T21:07:32Z")

</div>

not for very long

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 8, 2003, 8:28pm UTC](https://forum.kirupa.com/t/mx-hit-counter-no-cgi-or-perl-etc/22589/3 "2003-06-08T20:28:17Z")

</div>

What do you mean not for very long?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 8, 2003, 8:49pm UTC](https://forum.kirupa.com/t/mx-hit-counter-no-cgi-or-perl-etc/22589/4 "2003-06-08T20:49:24Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 8, 2003, 9:09pm UTC](https://forum.kirupa.com/t/mx-hit-counter-no-cgi-or-perl-etc/22589/5 "2003-06-08T21:09:17Z")

</div>

So because I use brinkster would it be possible to use an ASP page that reads from a db or something?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 8, 2003, 10:40pm UTC](https://forum.kirupa.com/t/mx-hit-counter-no-cgi-or-perl-etc/22589/6 "2003-06-08T22:40:17Z")

</div>

yes

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 9, 2003, 12:36am UTC](https://forum.kirupa.com/t/mx-hit-counter-no-cgi-or-perl-etc/22589/7 "2003-06-09T00:36:28Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 9, 2003, 4:29am UTC](https://forum.kirupa.com/t/mx-hit-counter-no-cgi-or-perl-etc/22589/8 "2003-06-09T04:29:52Z")

</div>

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](http://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](http://www.kirupa.com/developer/actionscript/asandphp.htm)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 9, 2003, 6:28am UTC](https://forum.kirupa.com/t/mx-hit-counter-no-cgi-or-perl-etc/22589/9 "2003-06-09T06:28:34Z")

</div>

I use [ASP.NET](http://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?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 9, 2003, 6:35am UTC](https://forum.kirupa.com/t/mx-hit-counter-no-cgi-or-perl-etc/22589/10 "2003-06-09T06:35:21Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 9, 2003, 4:00pm UTC](https://forum.kirupa.com/t/mx-hit-counter-no-cgi-or-perl-etc/22589/11 "2003-06-09T16:00:03Z")

</div>

Do you use Viusal Studio .NET? I use Web Matrix and it doesnt have a bin directory created?
