Solved

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

Posted on 2003-11-07
6
330 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
  • 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 125 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SWF capture the time on the Video 3 220
Crash with shockwave flash 8 238
bandwidth 5 67
Play RTMP without Flash 3 423
I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
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.

912 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now