?
Solved

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

Posted on 2003-11-07
6
Medium Priority
?
375 Views
Last Modified: 2008-03-03
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
Comment
Question by:jayanthgj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 

Author Comment

by:jayanthgj
ID: 9702125
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
 
LVL 27

Accepted Solution

by:
negatyve earned 500 total points
ID: 9702525
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
 
LVL 39

Expert Comment

by:blue-genie
ID: 9730872
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
 
LVL 39

Expert Comment

by:blue-genie
ID: 9730893
never mind, having a blonde moment, my files are 1 level down.

doh!!!

0

Featured Post

Independent Software Vendors: 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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question