Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
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
Medium Priority
?
174 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 13

Accepted Solution

by:
crooksy88 earned 2000 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses

618 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