6 Replies Latest reply on Jan 29, 2012 9:39 PM by TenchyMyo

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

    TenchyMyo Level 1

      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.