Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-21-2001, 01:43 PM   #1
erank
Registered User
 
Join Date: Mar 2001
Location: Dallas, TX
Posts: 17
Send a message via ICQ to erank
Post

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

fscommand("save","file.txt")

(Thanks to FlashGuru for showing me this one)

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-02-2001, 09:03 AM   #3
Taka
Registered User
 
Join Date: Apr 2001
Location: Barcelona/Spain
Posts: 1
Default

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 ;¬}
Taka is offline   Reply With Quote
Old 04-06-2001, 06:21 AM   #4
Raster
Registered User
 
Join Date: Apr 2001
Posts: 52
Default

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

Raster is offline   Reply With Quote
Old 05-21-2001, 05:46 AM   #5
kazmut
Registered User
 
Join Date: May 2001
Location: Philippines
Posts: 2
Send a message via ICQ to kazmut
Question I can't make the fscommand

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
kazmut is offline   Reply With Quote
Old 05-21-2001, 07:07 AM   #6
Jesse
ActionScript.org Founder
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: New York
Posts: 8,736
Default

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
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-21-2001, 07:12 AM   #7
kazmut
Registered User
 
Join Date: May 2001
Location: Philippines
Posts: 2
Send a message via ICQ to kazmut
Default Thank for the prompt reply Jesse

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.

kazmut is offline   Reply With Quote
Old 05-21-2001, 07:18 AM   #8
Jesse
ActionScript.org Founder
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: New York
Posts: 8,736
Default

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

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 08-08-2001, 10:55 PM   #9
rexmor
Registered User
 
Join Date: Aug 2001
Posts: 21
Default ?

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

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

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
External text loads partially & Render text as HTML prevents loading of text file piercedwater ActionScript 2.0 20 03-02-2005 11:33 PM
XML/ActionScript help pleeeeeeese....... witchking ActionScript 2.0 3 01-21-2005 06:42 AM
Importing multiple variables from a text file TheZsterBunny ActionScript 2.0 3 11-17-2004 09:14 PM
loading text file variables : flashdev Other Flash General Questions 2 12-08-2002 05:27 PM
saving variables to a text file mastifever Server-Side Scripting 1 03-31-2001 02:52 AM


All times are GMT. The time now is 07:30 PM.

///
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.