• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 411
  • Last Modified:

saving input in to text file, using Fscommand and Dos commands.

Hi Geeks,

 IN Flash MX ( with 98/xp)

      I Would like to have some detailed information on how to save the input text into a external text file.

      And would like to have idea's on how to make a intranetwork messaging service using flash.

       And All options that can be used while using a FSCommand.

    would be glad to have new idea's.

Jainth
0
jayanthgj
Asked:
jayanthgj
  • 2
1 Solution
 
jayanthgjAuthor Commented:
i have searched the web almost every nooks but found some command like,

 Fscommand("save", "filenaem.txt");

But i dont know from where would i get the data to write in for filename.txt, and the snytex doesn't tell me,  how it is...

0
 
negatyveCommented:
If your movie is deployed online, you need a server side language:

asp: http://www.negatyve.com/EE/write/asp.zip
php: http://www.negatyve.com/EE/write/php.zip

If your movie is deployes as a projector created with flash5, you can use:

fscommand("save", "file.txt");

which saves all variables from the main timeline inside "file.txt" (in the format variable1=value1&variable2=value2)

If your movie is deployes as a projector created with flash mx or above, you cannot use fscommand, but you need a third party tool:

http://www.multidmedia.com/software/flashstudio/
http://www.northcode.com/swfstudio/index.html
0
 
blue-genieCommented:
negatyve, in your asp example

will the line of code - objTextFile.WriteLine request("variable") stay the same if i'm setting the variable explicitly in flash rather than from an input field?

i've got a number of questions with radio buttons which set the _global.score1 then at the end of the quiz they click the btn which then runs the function below:


function onDone() {
      var answer1 = _global.score1;
      trace(answer1);
      loadVariablesNum("1.asp", 0, "POST");
}

i can't get the text file to write (the 1.asp is your pagina.asp file)

ideas?
ta
:)
blue
0
 
blue-genieCommented:
never mind, having a blonde moment, my files are 1 level down.

doh!!!

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now