A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Saving To .txt Files

  1. #1
    Not PWD ViRGo_RK's Avatar
    Join Date
    May 2001
    Posts
    1,799

    Saving To .txt Files

    I attempted a few searches, but for some reason it seems to be down for today.

    So I pose this question. How do you save to a text file from Flash 8?


    PAlexC: That's just Chuck Norris's way of saying sometimes corn needs to lay the heck down.
    Gerbick: America. Stabbing suckers since Vespucci left.

  2. #2
    Member
    Join Date
    Oct 2000
    Location
    Lansing, Michigan
    Posts
    79
    If you're talking about save some type of text from an swf, then you need to pass (by POST or GET) the text to a server script (php, asp...) that can read the values in. Then the script will need to open and write the text to a file.

    You can use LoadVars class to do this from Flash.

  3. #3
    Not PWD ViRGo_RK's Avatar
    Join Date
    May 2001
    Posts
    1,799
    Ok, gotcha. My dad knows enough ASP to get me through that part, I'll learn it from him. Thanks.


    PAlexC: That's just Chuck Norris's way of saying sometimes corn needs to lay the heck down.
    Gerbick: America. Stabbing suckers since Vespucci left.

  4. #4
    An FKer
    Join Date
    Sep 2005
    Location
    Ontario
    Posts
    1,167
    Hey Virgo,

    Once your figure it out, care to assist me with it, Im trying to do the exact same thing without any idea how.

    I wrote a thread in General Forum about it too, so I'll be watching both

  5. #5
    Not PWD ViRGo_RK's Avatar
    Join Date
    May 2001
    Posts
    1,799
    Alright, when my dad gets back from a two day work trip, I'll work it out with him and let you know. I'm not too familiar with ASP, so we'll plow through the script and I'll pass it on.


    PAlexC: That's just Chuck Norris's way of saying sometimes corn needs to lay the heck down.
    Gerbick: America. Stabbing suckers since Vespucci left.

  6. #6
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    This will write it to a cookie:

    Code:
    var myInfo_so:SharedObject = SharedObject.getLocal("flashmechanicCookie");
    save_btn.onRelease = function() {
    	myInfo_so.data.myLoginData = myInput_txt.text;
    	myInfo_so.flush();
    }
    myInput_txt.onSetFocus = function(){
    	myInput_txt.text = myInfo_so.data.myLoginData;
    }

  7. #7
    An FKer
    Join Date
    Sep 2005
    Location
    Ontario
    Posts
    1,167
    Nice Estudio,

    Though that doesnt really fit my needs, but its a good thing to know for other things. Ill be sure to add that to my Flash Dictionary

    Thats right, I keep a flash dictionary of different things, laugh it up haha

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