# Hit counter in flash?

**URL:** <https://forum.kirupa.com/t/hit-counter-in-flash/10073>\
**Category:** flash\
**Created:** [December 23, 2002, 8:55pm UTC](https://forum.kirupa.com/t/hit-counter-in-flash/10073 "2002-12-23T20:55:55Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![cookie](https://avatars.discourse-cdn.com/v4/letter/c/d26b3c/32.png) [@cookie](https://forum.kirupa.com/u/cookie)\
**Post date:** [December 23, 2002, 8:55pm UTC](https://forum.kirupa.com/t/hit-counter-in-flash/10073/1 "2002-12-23T20:55:55Z")

</div>

I did a search in the forums and I found a few posts about this but has anyone got an example to show me?

---

<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:** [December 23, 2002, 8:57pm UTC](https://forum.kirupa.com/t/hit-counter-in-flash/10073/2 "2002-12-23T20:57:22Z")

</div>

Colin Moock (world famous flasher) has something about that on his site…

[http://www.moock.org/webdesign/flash/actionscript/hitcounter/index.html](http://www.moock.org/webdesign/flash/actionscript/hitcounter/index.html)

---

<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:** [December 24, 2002, 7:23am UTC](https://forum.kirupa.com/t/hit-counter-in-flash/10073/3 "2002-12-24T07:23:05Z")

</div>

can we do that w/o using cgi?

---

<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:** [December 24, 2002, 7:24am UTC](https://forum.kirupa.com/t/hit-counter-in-flash/10073/4 "2002-12-24T07:24:20Z")

</div>

You can do it with PHP (the new age CGI).

But other than that… 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:** [December 24, 2002, 7:25am UTC](https://forum.kirupa.com/t/hit-counter-in-flash/10073/5 "2002-12-24T07:25:21Z")

</div>

You need to use some server side script to save the information to a text file or data base. I would use PHP and add the information to a text file, then use loadvars to pull the information into the flash file.

---

<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:** [December 24, 2002, 2:23pm UTC](https://forum.kirupa.com/t/hit-counter-in-flash/10073/6 "2002-12-24T14:23:52Z")

</div>

> \*Originally posted by Jubba \*  
> \*\*You need to use some server side script to save the information to a text file or data base. I would use PHP and add the information to a text file, then use loadvars to pull the information into the flash file. \*\*

When you use textfiles, The php script won’t count multiple users entering…

---

<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:** [December 24, 2002, 5:08pm UTC](https://forum.kirupa.com/t/hit-counter-in-flash/10073/7 "2002-12-24T17:08:54Z")

</div>

h88: Do you mean multiple users at the same time? Or do you mean unique visiters?

---

<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:** [December 24, 2002, 5:52pm UTC](https://forum.kirupa.com/t/hit-counter-in-flash/10073/8 "2002-12-24T17:52:57Z")

</div>

> \*Originally posted by Jubba \*  
> **Do you mean multiple users at the same time?**

Yup…

---

<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:** [December 24, 2002, 6:08pm UTC](https://forum.kirupa.com/t/hit-counter-in-flash/10073/9 "2002-12-24T18:08:58Z")

</div>

i see…well, i haven’t started studying about php yet, so i guess i have to wait until i understand php.

that’s what i want to do, to identify unique visitors, or somethin like dat…

---

<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:** [December 24, 2002, 6:12pm UTC](https://forum.kirupa.com/t/hit-counter-in-flash/10073/10 "2002-12-24T18:12:06Z")

</div>

> \*Originally posted by Jubba \*  
> \*\*unique visiters? \*\*

You would need cookies then…

---

<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:** [December 25, 2002, 1:32pm UTC](https://forum.kirupa.com/t/hit-counter-in-flash/10073/11 "2002-12-25T13:32:40Z")

</div>

i downloaded the tutorial at [moock.org](http://moock.org), i have a very serious problem…how do i set the file’s permission to 755?

---

<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:** [December 25, 2002, 2:42pm UTC](https://forum.kirupa.com/t/hit-counter-in-flash/10073/12 "2002-12-25T14:42:19Z")

</div>

It mean’s that your should chmod your files…

---

<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:** [December 25, 2002, 5:30pm UTC](https://forum.kirupa.com/t/hit-counter-in-flash/10073/13 "2002-12-25T17:30:54Z")

</div>

Downloaded this from macromedia itself
