Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Supporting Technologies > Server-Side Scripting

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-28-2001, 08:09 PM   #1
MaxDemian
Registered User
 
Join Date: Mar 2001
Posts: 5
Default

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
MaxDemian is offline   Reply With Quote
Old 03-28-2001, 11:33 PM   #2
Jesse
ActionScript.org Founder
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: New York
Posts: 8,736
Default

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

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.
Jesse is offline   Reply With Quote
Old 04-12-2001, 03:47 PM   #3
MaxDemian
Registered User
 
Join Date: Mar 2001
Posts: 5
Default thanks but

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
MaxDemian is offline   Reply With Quote
Old 04-23-2001, 09:29 AM   #4
zghost
Registered User
 
Join Date: Apr 2001
Posts: 6
Default

how would this work online through the browser?

thanks, appreciated

zghost
zghost is offline   Reply With Quote
Old 04-23-2001, 09:56 AM   #5
Jesse
ActionScript.org Founder
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: New York
Posts: 8,736
Default

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

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.
Jesse is offline   Reply With Quote
Old 04-25-2001, 05:45 AM   #6
zghost
Registered User
 
Join Date: Apr 2001
Posts: 6
Default

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
zghost is offline   Reply With Quote
Old 04-25-2001, 08:34 AM   #7
Jesse
ActionScript.org Founder
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: New York
Posts: 8,736
Default

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

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.
Jesse is offline   Reply With Quote
Old 05-05-2001, 09:49 PM   #8
zghost
Registered User
 
Join Date: Apr 2001
Posts: 6
Default

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?
zghost is offline   Reply With Quote
Old 05-06-2001, 08:12 AM   #9
Jesse
ActionScript.org Founder
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: New York
Posts: 8,736
Default

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

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.
Jesse is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

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 01:18 PM
Function and var problem Paul Vereijken ActionScript 1.0 (and below) 1 02-01-2005 07:35 PM
flash movie plays in browser too slow m1cky ActionScript 2.0 7 01-11-2005 08:11 PM
yin & yang : better/shorter way? hognav2t ActionScript 1.0 (and below) 9 06-21-2004 02:04 AM


All times are GMT. The time now is 04:35 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.