Solved

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

Posted on 2003-11-07
6
323 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
never mind, having a blonde moment, my files are 1 level down.

doh!!!

0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Action Script commands 5 229
Open Source MP4 Flash Player 2 160
how can i learn adobe flex step by step 4 80
Download Adobe Flash Player 6 55
This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
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.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now