A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Info storing (not web)

  1. #1

    Info storing (not web)

    Im trying to find a good way to store info, such as variables, into a text file preferrebly, from a computer... People have suggested using scripts like php, cgi, and such... But for these I would need to have the game online... Or have webspace... Either of which I dont want/have ... Anyone know another way...

    I am also trying to steer clear of localShared Objects.... Only because I cant choose where I store the file. With .txt files I'll be able to save it in the same folder... Also, in testing my game I would be able to edit them as I please... But I have had no success in finding a way...

    Any suggestions are greatly appreciated!!!

    Thanks,
    ~Bill
    So many Ideas

    So little Time

  2. #2
    Senior Member
    Join Date
    Apr 2004
    Location
    Missouri
    Posts
    384
    You cannot make Flash write a txt file. You have to use some kind of server-side scripting. You could use shared objects. Just create another file that loads in the shared object and lets you edit it.

    Here's another possible solution. Note: I've never tried this. It just popped in my head. You could use fscommand to execute a file on your computer. You could write a little proggy in c++ or some other language. You would use fscommand to execute the proggy (and send the variables, if you can) and then the proggy would write the text file.

  3. #3
    I've had small experience with C++, possibly Java... Ive done some with Java, Though I'm not sure how I could send the variables to the java program...

    Could you possibly explain a little more of what you are talking about with the shared objects? ... I'm not sure what you are suggesting...

    Thanks alot for the ideas!

    ~Bill
    So many Ideas

    So little Time

  4. #4
    Senior Member
    Join Date
    Apr 2004
    Location
    Missouri
    Posts
    384
    You would create an swf that would load the same shared object that your game loads. It would put the shared object in some textfields or something, and you could edit the textfields. You could then have a button that would save the shared object in the way that you changed it.

    So lets say you have a shared object and it has one variable. You would have an swf that loads that shared object and puts that variable in a textfield. You would then type/change the textfield however you want, and press a button. The button would then change the shared object to what is in the textfield. This way, when you reopen your game, it will load the changed variable.

    Hope that helps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center