- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsI have created a flash projector file and I need to keep track of how many times some pages are hit. This .exe file will run on a local touchscreen PC with no internet connection. Does anyone know a way to write a variable to a text file on the local hard drive and increment by one when a page gets hit? I know the main issue is no internet connection to use so this may be hard but I figured that I would ask the experts first :)
If you can solve this you really are a expert!!!
Any help would be greatly appreciated.
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: quizenginePosted on 2009-05-29 at 08:29:48ID: 24503460
Two suggestions - one involves altering how the PC works, the other by altering how the flash .swf (or .exe) works.
loper/mx/h itcounter. htm)
m/). You may find this solution more preferable if you don't have control over the machines that your kiosk will be installed on (i.e. you can't install wampserver on them) because this will allow you to create a standalone .exe that *can* write to local files.
First, the problem. Adobe have built security features into Flash that specifically *prevent* Flash from doing what you want. There is *no* way that Flash can be persuaded to write to a local file. It just doesn't do it.
So, the solution(s). Firstly Flash *can* make requests to other software to ask that other software to store something to a local file. This is normally done by Flash passing the request to a 'server side scripting language' (most commonly PHP). Problem is, that this only works on a web server, because 'normal' PCs don't have PHP installed. But, you *can* install PHP on a regular computer - see http://www.wampserver.com/
Once installed, you'll also need to create a PHP file that will create / update your hit counter, and also write some code into your swf / exe that calls the PHP. Google 'php hit counter flash' to find some sites to talk you through this (e.g. - http://www.kirupa.com/deve
The second way to solve this is to *add* the ability to store to text files by *extending* what Flash can do. My preferred extensions to Flash is Multidmedia [sic] Zinc (http://www.multidmedia.co
Good luck.