dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Simple way of loading a var from a file and replacing it with an updated version?

  1. #1
    Member
    Join Date
    May 2011
    Posts
    55

    Simple way of loading a var from a file and replacing it with an updated version?

    Hi, I would like to have flash (as3) to save a var to a text file located on my server so everyone can reach it from their client swfs. I also need to know how to update this variable by loading latest var on the server and writing over it with a new updated var.

    I've read so much already and it all seems so confusing

    http://www.kirupa.com/forum/showthre...S3-PHP-Notepad
    http://www.flash-db.com/Tutorials/sa...ata.php?page=7
    http://www.flash-db.com/Tutorials/sa...ata.php?page=2
    http://www.flash-db.com/GuestBookTut/

    For example, I could have a file called hello.text on http://www.randomsite.com/game/hello.txt which contains:

    variable=potatoe

    I would like to, whenever I feel like it, be able to load that var and replace it with something else.

    Any simple solution for this?


    Many thanks in advance.

  2. #2
    Registered User
    Join Date
    Feb 2001
    Posts
    13,044
    Hi,

    what is wrong with the tutorial at flash-db.com?
    You really need serverside script to save data, and you should use serverside even to read it - this way the script can ensure that recurring visitors see the latest version of the file

    Musicman

  3. #3
    Member
    Join Date
    May 2011
    Posts
    55
    Yeah, I know.... many hours later I got something to sort of work.... so, eventually I'll get the result I want. Was just hoping for a quicker way.

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