PDA

View Full Version : Saving data locally, NOT on a server.


chrishosch
08-25-2004, 09:03 PM
This isn't exactly a server-side question since I won't be using a server, but I thought this is the best place to get an answer. Here's the deal:

I'm creating a flash movie to play on a kiosk at a trade show. I want to be able to record how many times a button is clicked, how many times a movie is viewed, etc. It's easy enough to do within Flash, but should the Flash movie quit, i.e. computer crash, etc., the data will be lost. And since the computers will not be on a network, I cannot use PHP or CGI. So I have a few questions...

Can Flash communicate directly with another program running locally?
Can Flash copy to the system's clipboard?
Do you have any other suggestions?

Thanks,
Chris

Curly Brace
08-25-2004, 09:19 PM
I think, there are two ways:
1. Use some third-party programs (like MProjector http://www.screentime.com/software/mprojector/) that can deal with clipboard and local files.
2. For your needs I suggest to use shared object that is built-in for Flash.

chrishosch
08-25-2004, 09:24 PM
Well, I answered one of my own questions. Flash can copy to the clipboard: System.setClipboard()

So basically I would have another program that reads the clipboard when new data is added. I'm not sure this is the best solution since the user may decide the try to use the clipboard and then my data would be screwed up.

Could I use somehow use cookies to solve this?

Curly Brace
08-25-2004, 09:28 PM
Try using shared object first

chrishosch
08-25-2004, 10:38 PM
Yep, shared object works great. Thanks!