| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
|
Anyone know how to save my variables to a text file on a users hard drive. We will be deploying our project via CD-ROM. I know Director can do it and I have thought of sending my variables to Director and having director save them out. But I am wondering if there is a better way.
|
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
fscommand("save","file.txt")
(Thanks to FlashGuru for showing me this one) 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: Apr 2001
Location: Barcelona/Spain
Posts: 1
|
HI, they say in Macromedia, this not working for Mac.
In fact if you've done the "save" method, nothing appening as it does with PC. But if you run "Sherlock" and watch for the files modified today, you'l find that: "file exchange had worked", a temporary items fiels had been created, inside there is a temp file (begining with "dftmp" ending with "kkkkkkk--------", in between, 8 caracts.,the same for each session/système + a different one for each "save" you've done.). They say that Director & Flash Projectors are the same, but flash ones don't holds the system communication layer, and you can't save, thats all! Thats why a director projector weigth with nothing inside is more than 1 meg. Flash for the web, Director for CD, no preferences for flash exe applications... oh my ;¬} |
|
|
|
|
|
#4 |
|
Registered User
Join Date: Apr 2001
Posts: 52
|
Jesse, I saw you answered a question about saving items to a file, I was wondering, what the code would be to have a button copy text from a text field, and append it to a file??? and could you have that file on a server???
Any info would be great. Thanks |
|
|
|
|
|
#5 |
|
Registered User
|
I've been trying to develop a questionnaire for my clients. I can send out the variables to my php formmail ... but I'd also want to be able to save the variables on my HD when I go to my customers with just a PC and no internet connection. I've tried other external filesavers for flash like azhell etc. but there are certain limitations. My questionnaire has 180 questions! .need help. thanks
|
|
|
|
|
|
#6 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
Why can't you use the FSCommand? I made a sample then that ouputs 200 variables with random values toa text file using FSCommand and it worked fine:
Code:
&j=190&var0=0&var1=1&var2=2&var3=3&var4=4&var5=5&var6=6&var7=7&var8=8... all the way to 200 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. |
|
|
|
|
|
#7 |
|
Registered User
|
but .. as I've told you I've been having problems with FSCommands...
I've put this on my release button. fscommand ("save", "c:\\hello.txt"); but I never got to see hello.txt could my OS have somehting to do with it? i'm on w2k. |
|
|
|
|
|
#8 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
Not sure about the OS. I guess Win2K is NT based so that could be it... you're running the standalone projector right? FSCOmmands don't work in the browser (this one doesn't at least)
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. |
|
|
|
|
|
#9 |
|
Registered User
Join Date: Aug 2001
Posts: 21
|
I think saving a text file will not work on the browser. It will work only by running the .SWF file. I want also to save a new text file on the server running on the browser.
Thanks if ever there's a clarification on how to save a txt file on the server. rex |
|
|
|
|
|
#10 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
the fscommand 'sa've wont work through the browser, it is made for the projector. if you want to write files to a server then you have to use server scripts like PHP. search the forums (using the 'search' button above) for 'php write text file'
__________________
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 |
| External text loads partially & Render text as HTML prevents loading of text file | piercedwater | ActionScript 2.0 | 20 | 03-03-2005 12:33 AM |
| XML/ActionScript help pleeeeeeese....... | witchking | ActionScript 2.0 | 3 | 01-21-2005 07:42 AM |
| Importing multiple variables from a text file | TheZsterBunny | ActionScript 2.0 | 3 | 11-17-2004 10:14 PM |
| loading text file variables : | flashdev | Other Flash General Questions | 2 | 12-08-2002 06:27 PM |
| saving variables to a text file | mastifever | Server-Side Scripting | 1 | 03-31-2001 03:52 AM |