SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Jun 2003
    Location
    nksdalj
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    write to a text file?

    how do i write a variable to a text file so that i can open it again next time the flash script is run using this code:
    loadVariablesNum ("text.txt", 0);
    or, if that's not possible, how do i embed my flash movie in an html site and then pass a variable from html to flash and back???

    thanks in advance.
    Last edited by marvinklein; Jun 4, 2003 at 09:09.

  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What version of flash is this intended for? If its MX, you might want to look at sharedObjects. Maybe you could elaborate on what you are trying to do, besides just the loaidng of a variable. What will the variable do?

  3. #3
    SitePoint Member
    Join Date
    Jun 2003
    Location
    nksdalj
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i want the user to enter text and then store that text to a text file. that's it. I'm using flash MX and i can't use PHP, only html.

  4. #4
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Flash MX currently has no out of box option for directly writing to text files. However like I said, does the text file need to be used by anyone else, or is it merely for saving user specific text for retrieval upon subsequent visits to the site? If so, use sharedObjects instead. Also where will the text files reside, the server? the client computer?

  5. #5
    SitePoint Member
    Join Date
    Jun 2003
    Location
    nksdalj
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i want the file to reside on the server. each person visitng my site can store variable there.

  6. #6
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well then you need some sort of server-side scripting language, hands down. Or like I said you can use sharedObjects to store user variables, like a flash cookie, which can be modified and retrieved in flash.


Bookmarks

Posting Permissions

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