Solved

Can flash exe read from some kind of secure file, or is there a way to secure dat, txt, xml etc.?

Posted on 2008-06-18
7
165 Views
Last Modified: 2010-04-21
Here we go :)
I have a client that wants something like quiz game that will be played localy (flash exe). But he also wants some kind of password protected editor in wich he will be able to change and add questions, also localy.
I sed to him that for something like that you need server, and his reply was "No, no I didn't mean server, I ment exe file in wich I can add and remove questions." So what to respond to that person?

Anyway I don't wish to lose that job, so I was wondering, if I can teach him to write directly into xml or dat file or something else that flash can load and read is there a way to protect that file so that players won't be able to edit it by themselves? Or to make that file readable only to flash exe file?

Thank you for any suggestions.
0
Comment
Question by:mankis
  • 4
  • 3
7 Comments
 
LVL 13

Accepted Solution

by:
crooksy88 earned 500 total points
ID: 21820056
I'm not sure if it is possible to password protect a .txt or .xml file, not without using some other app like winZip.

Have you considered creating a directory which is placed somewhere deep on the c: drive of the PC, then have flash access the txt file from there? As the flash exe is played and the txt file loaded in there would be no way for a user to see where the txt file was coming from.

e.g. have the exe file on the desktop but have the txt file hidden somewhere like:
c:/Program Files/Powerpoint/Temp/questions.txt
0
 

Author Comment

by:mankis
ID: 21820132
I think that my client also wishes to put this game on CD and give to other people. He just wishes to be able to add and change questions, but to disable that options for players (or at least reduce this possibility).
0
 
LVL 13

Expert Comment

by:crooksy88
ID: 21820166
If he is giving out CD's how does he envisage being able to change the questions on other people's computers?


0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:mankis
ID: 21820308
I haven't asked him that yet. Last thing that we spoked was that that I mentioned in the first post. I don't wish to send another post and get another confusing answer. I wish to send him a mail that says: you can't do that but we can do this.
0
 
LVL 13

Expert Comment

by:crooksy88
ID: 21820350
Well if there are multiple copies of the CD all over the place and the questions need to be changed there are only 2 ways to do it as far as I can see:

1. would be to manually change the text file and then email that text file to all owners of the CD and tell them to overwrite the original txt file (NOT a good solution).

2. to have the txt file online and have the exe file connect to the internet and check to see if there was a new version of the txt file available, and if so, download it. To do this would would need additional software like SWFStudio to prepare your exe with a http client.
0
 

Author Comment

by:mankis
ID: 21820464
Yes but in that case the txt file is still not protected, it can be edited anyway.
I'm going to ask my client this questions to know more what does he wants.
0
 

Author Closing Comment

by:mankis
ID: 31468674
Thank you for your help. My client accepted to put txt file away from exe file.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now