A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: loadvariables to .txt

  1. #1
    I'm dope. Psytrix's Avatar
    Join Date
    Aug 2002
    Location
    Slidell, LA
    Posts
    309

    loadvariables to .txt

    im using this code..

    on(press) {
    _root.loadVariables("info.txt","id","POST");
    }

    and it wont work.

    on press of the button, i want it to POST the information from the "id" input text field into the "info.txt" file. the info.txt is in the same folder on my computer as the swf when publish it. whats going wrong?

  2. #2
    I'm dope. Psytrix's Avatar
    Join Date
    Aug 2002
    Location
    Slidell, LA
    Posts
    309
    ...

  3. #3
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    Flash can not write to a designated textfile ( well., the Flash 5 Projector can, locally ). You have to use a serverside script for that ( if its on a server ). You can read variables from textfiles though.

    Flash MX can save "cookies" though, and they are stored locally on the computer. Its called Shared Objects.Lots of threads about it here.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  4. #4
    I'm dope. Psytrix's Avatar
    Join Date
    Aug 2002
    Location
    Slidell, LA
    Posts
    309
    do you know of one thread in particular that would be useful for me?

  5. #5
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    It would depend on what script your server supports. I use the FlashDB (cgi) script from www.kessels.com to update textfiles for highscores, news, guestbooks and so on. It works on Win2000 and Unix servers and is relatively easy to set up.

    Easiest would be a php script I think.

    You might want to make a search on this site ...
    http://www.flashkit.com/board/search...der=descending

    ....or try google.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  6. #6
    I'm dope. Psytrix's Avatar
    Join Date
    Aug 2002
    Location
    Slidell, LA
    Posts
    309
    well do you know of any freedomains that would support the .cgi?

  7. #7
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    Sorry, I only know Swedish servers and the ones that are free only supports php.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  8. #8
    Member
    Join Date
    May 2002
    Posts
    78
    I think that this link will be usefull for you

    http://www.actionscript.org/tutorial...le/index.shtml

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