| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Mar 2001
Posts: 5
|
I would really like to know how to perform this function and have noted the post from erank: "saving variables to a text file". Unfortunately I was unable to apply the solution given in the reply. My dilemma is only slightly more complex.
I am creating an application that requires the user to enter information in multiple text fields (ex. first name. last name, etc.) and want to save these values as either individual txt files or as one whole txt document with all the variable values saved. This will allow the user to quit the application but retrieve her information for another time. I am sure the solution uses the fscommand - "save" functionality but I can't find any documentation that expands on its use. Any help will be greatly appreciated. -Max |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
First thing to establish is:
is this going to be run online via the browser or on the Hard Drive of the user via the Flash Projector? The method is different depending on which you're doing. Cheers Jesse
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Mar 2001
Posts: 5
|
I was initially asking about saving variables in reference to a local projector. I did indeed figure this out but discoverd the "save" fscommand only works on PC, not on Mac. If there is a way to do this on a Mac I would love to know.
Thanks again, -Max |
|
|
|
|
|
#4 |
|
Registered User
Join Date: Apr 2001
Posts: 6
|
how would this work online through the browser?
thanks, appreciated zghost |
|
|
|
|
|
#5 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
zGhost,
Via the browser you can only save variables to your server, you can't save files to the user's hard-disk for security reasons. Cheers Jesse
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
|
|
#6 |
|
Registered User
Join Date: Apr 2001
Posts: 6
|
sorry if i am missing something obvious, but how do you send variable information into the text file. the fs ( "save", "text.txt") creates the text file but i do not know how to place the information into the text file.
thanks zghost |
|
|
|
|
|
#7 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
That command will write all variables currently int he flash file out to a text file int he correct form to be imported again:
&variable1=value1&variable2=value2 etc. It is designed only as a way of 'saving' variables for importing later, not to export text files for use by the user or anything like that. Cheers Jesse
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
|
|
#8 |
|
Registered User
Join Date: Apr 2001
Posts: 6
|
i put together a piece using this technique, but it does not save to the text file on the server when it is run online. is there a way to make it save to the text file when the page is viewed online or does the save command only work locally?
thanks zghost one more thing, does anyone know the difference btw loadvariables and loadvariablesNum? |
|
|
|
|
|
#9 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
VariablesNum = load into level
Variables = load into target MC.... The save method is for local presentations on Windows based PCs ONLY. If you want to do it online you need to use a server side script, see these threads: http://www.actionscripts.org/forums/...3?threadid=851 http://www.actionscripts.org/forums/...3?threadid=749 Cheers Jesse
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| FREE Image Gallery Code UPDATED w00t w00t!! | flavoredthunder | ActionScript 1.0 (and below) | 2 | 12-22-2006 02:18 PM |
| Function and var problem | Paul Vereijken | ActionScript 1.0 (and below) | 1 | 02-01-2005 08:35 PM |
| flash movie plays in browser too slow | m1cky | ActionScript 2.0 | 7 | 01-11-2005 09:11 PM |
| yin & yang : better/shorter way? | hognav2t | ActionScript 1.0 (and below) | 9 | 06-21-2004 03:04 AM |