Wednesday, January 27, 2010

Flash Examples And Instructions Take Input From Flash Form And Save It To Text File For Latter Import?

Take input from flash form and save it to text file for latter import? - flash examples and instructions

I have a flash form that is not online, so I can not use PHP or another. I need Flash to accept the entry form and save it in a file that I can call whatever you want on the form. The text file must be saved, you can open the file again and flash the same way it was when I did.

Help please!
Thank you!

I need some information and instructions if possible.


Example:

Name: _____________
E-mail :_____________ (/ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ This is the registration form)

(Filed :_______________ file names so the file will be named)
______
lSAVEl
---------- (If you have the information contained in this form, to a text file with the name above saved)

1 comment:

Steve C said...

Unless absolutely necessary for a text file, I recommend using the Flash SharedObject class. It allows you to store information on your hard drive so that after Flash Player is closed and opened (even if the computer is restarted), that information available.

The name of the text fields ',', 'email', and 'filename'.
SAVE.onClick = function () (
= Mydata SharedObject.getLocal (filename.text);
if (mydata.data) (
/ / You can instruct the user to replace a file, and return if you do not want.
)
mydata.data.name = name.Text;
mydata.data.email = email.text;
mydata.flush ();
)

/ / Then load up, too, you can do ...
LOAD.onClick = function () (
= Mydata SharedObject.getLocal (filename.text);
if (mydata.data) (
name.Text = mydata.data.name;
email.text = mydata.data.email;
) Else (
/ / Alert the user to save the file does not exist
)
)

Post a Comment