Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Saving A Txt File



Is there anyway with out swf studio to save a text file on the computer without a server?



FlashKit > Flash Help > Flash ActionScript
Posted on: 05-01-2006, 07:19 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Weird .as Bug -- When Saving .as File, Flash Forces 'save As', Then Creates .TMP File
has anybody seen this???

when trying to save an .as file (the file already existed), instead of it being saved, i get a 'save as' dialog from Flash

if i click 'save', i get a prompt saying the .as file already exists and do i want to overwrite it...

if i click 'yes', the file is saved and then in the directory where the .as file is saved i get something like this, Trace.as~RF11025e.TMP

the .as file in question, Trace.as, i had first saved on my PC (windows 2000), i had then saved the file to a borrowed laptop (windows xp), and now saved back to my PC...

this is when i started getting this weird bug

does anybody know what's going on???

Weird .as Bug, When Saving .as File Flash Forces 'save As', Creates .TMP File
has anybody seen this???

when trying to save an .as file (the file already existed), instead of it being saved, i get a 'save as' dialog from Flash

if i click 'save', i get a prompt saying the .as file already exists and do i want to overwrite it...

if i click 'yes', the file is saved and then in the directory where the .as file is saved i get something like this, Trace.as~RF11025e.TMP

the .as file in question, Trace.as, i had first saved on my PC (windows 2000), i had then saved the file to a borrowed laptop (windows xp), and now saved back to my PC...

this is when i started getting this weird bug

does anybody know what's going on???

Weird .as Bug, When Saving .as File Flash Forces 'save As', Creates .TMP File
has anybody seen this???

when trying to save an .as file (the file already existed), instead of it being saved, i get a 'save as' dialog from Flash

if i click 'save', i get a prompt saying the .as file already exists and do i want to overwrite it...

if i click 'yes', the file is saved and then in the directory where the .as file is saved i get something like this, Trace.as~RF11025e.TMP

the .as file in question, Trace.as, i had first saved on my PC (windows 2000), i had then saved the file to a borrowed laptop (windows xp), and now saved back to my PC...

this is when i started getting this weird bug

does anybody know what's going on???

Saving An XML File With A Certain Passed File Name To PHP
hello.
i used a kirupa tutorial to save an xml file.

AS:
var xml_file = "xmlFileName.xml";
var server_file = "phpFileName.php";
my_Xml.sendAndLoad(server_file, xml_file);


PHP:
<?php $filename = "xmlFileName.xml"; ******************
$raw_xml = file_get_contents("php://input");
$fp = fopen($filename, "w");
fwrite($fp, $raw_xml);
fclose($fp);
?>

So I need to save that my_Xml object to different files... with different file name of course. So the xmlFileName changes all the time inside my flash.
Now.. what can I change in the PHP file... so the $filename receives the value from flash?

example 1:
xml_file = "ex1.xml"
my_Xml.sendAndLoad(server_file, xml_file);
xml_file = "ex2.xml";
my_Xml.sendAndLoad(server_file, xml_file);

at the end of this... on my server must appear 2 files: ex1.xml and ex2.xml.

PS: when I run the first script, a blank IE page with the name of the php file appears... how can I get rid of it?

thank you!

Saving File On CD Rom
Is it possible to use flash on a CD ROM, like an application. So you can save simple text files and load them back into flash via a menu to choose a file from? If not can you do it in director?

Saving To A *.txt File
it's me again i am strugling to save information that a user input's to a txt file.
the txt files name is info.txt
the veriable's name is info please help.
Thanks.

Saving To A Php File
hi i have learned php a little and if you know how please tell me hou to save a veriable "name" to a *.php table "$name"
thanks Ebola

Saving To Txt File?
in my flash file i have a variable called 'total';

I want the value to be save to a txt file on the clients pc.(a cookie)

can some 1 tell me how to do this? OR do this using php or something...

Saving File From .swf
Hi How do I save something to a file from a .swf file?
For example, when you click a button, the position of the mouse cursor is saved to a .txt file.

Saving .pdf Or .doc Or Any File?
I'm trying to find a way to save files to pc on Flash.
when u click a link, instead of opening up the external file in it's program it gives u the option to "Open or Save to PC."

if i clicked on a PDF link, instead of opening the file, it'll ask if i want to save a copy to computer.

for example
"click here" (to save a copy of the PDF format to your computer)


thanks for any help

Saving A File?
hi all!

does anyone know what the code is to save a file (download a file)

for eg: i have a button that when pressed should bring up the windows download dialog "open, save, cancel"

how can i do this?

thanks

Saving To *.txt File?
hi all!

hey does anyone know how to save some text into a *.txt file?

i did it ages ago but i cant remember how i did it.

im using flash mx

any help would be great!


thanks

Saving To A File
Hi. I'm in the middle of building an application in flash. But, already, I have a problem. I have no idea how to save information away to a .txt file. Does anyone know how?

Thanks in advance.

[F8] Saving To .as File
I know you can load and run external .as files that hold action script. I don't think this is possible but can you save variable values to a .as file?

[F8] Saving As An Avi File
i have made a flash movie and saved it as avi file... wen i play it in windows media player it works.. but the quality aint as good... iv tried to jiggle about with the settings when saving but still no diffrence.. how can i improve the quality of the flash file when saving as an avi file..?? thanks

Saving Changes To Swf File...
Hello,

I'm trying to see if this can be done in Flash. What I would like to do is have a graph, that can be manipulated by other users. (ex. areas that can be dragged and dropped, and boxes that display different heights when clicked). Once all of the changes have been made to the graph, I want the user to be able to save these changes for future use, if they reopen the swf file at a later date.

Can this be done?

Thanks!

Saving To A *.txt File
I use Macromedia Flash MX and I need to save a lot of information. What options do I have? Thanks!

Saving A Xml File
hi everyone

can please someone help me on this?

i want to know if someone can tell me how do i create a new xml file saving it on my hardisk or how do i add something to an existing xml file and then save it on my harddisk.
the question is how do i do this by using only flash,is it possible?
i don't wanna use asp or php or cgi or some other server-side scripts

i've searched on kirupa forums ans tutorials ans i couldn't find nothing to do this
thanks

Saving A File
i got a problem.. it's my first time to use flash mx.. i don't know how to save a file.. i tried doing the animation in the basic tutorial.. and my outcome was different from what it should have been.. there was a problem in the flow.. the text appared first then followed by the background then the background disappeared.. why did the backdround disappeared? isn't it that the background should just be there while the text was moving?

Saving Xml To File
Not sure if this is a Flash question, ASP question or a PHP question....

I have created a xml based guestbook and am having problems posting a new entry to the xml file.

I found a tutorial at http://www.kirupa.com/web/xml_guestbook.htm and so have been going off that.

I have attached my .as file which I think is ok.

The issue I am running into is that I need to use asp instead of php to physically write to the xml file. And since the tutorial only shows how to do this in php I am having trouble converting this to asp. I don't know if the issue is that flash isn't passing the data, or if my script isn't correctly requesting the data.

One problem is finding an asp equivalent to $HTTP_RAW_POST_DATA.

Any help is greatly appreciated!!

Here is the php script


PHP Code:





<?php
$file = fopen("guestbook.xml", "w+") or die("Can't open XML file");
$xmlString = $HTTP_RAW_POST_DATA; 
if(!fwrite($file, $xmlString)){
    print "Error writing to XML-file";
}
print $xmlString."
";
fclose($file);
?>








and here is the asp script I tried to convert the php to


Code:

DIM objFSO, xmlFile, xmlData, objFileStream
SET objFSO = Server.CreateObject("Scripting.FileSystemObject")
xmlFile = "Guestbook.xml"
xmlData = Request.Form

IF NOT objFSO.FileExists(Server.MapPath(xmlFile))THEN
'I figure it is best to error check first
Response.Write("Sorry, the file " & xmlFile & " does not exist.")
Else
'We have a file!
SET objFileStream = objFSO.OpenTextFile(Server.MapPath(xmlFile), 2)
objFileStream.Write(xmlData)
objFileStream.Close
SET objFileStream = NOTHING

'send the xml back to Flash where it is received by our receiver object
Response.Write(xmlData)

END IF

SET objFSO = NOTHING

Saving To An External .txt File
hi,

I wish to save some variables to a relative .txt, .ini (or anything else someone might care to recommend) file, so that the variable can be called into use the next time the file is opened (user name/ highscores etc...).

The project is for distribution over cd-rom, to be either installed on the host computer or run from CD with the variables stored on the host machine. I therefore can't use serverside solutions such as perl or cgi.

thanx,

geepers.

Saving To An EXTERNAL FILE
How can we make a script that saves what is on a group or just one text field in a flash movie to an external text file.

Thanks !

Saving Info To A TXT File...... How?
Ok I want to be able to load a TXT file into a flash interface then be able to make changes to the text/code/whatever (<<know how to do this) then....
click a save button and save the changes to the TXT file....

How do you save to a text file?


k

FScommand Help -- Saving In Txt File
Hi.

Can anyone refresh my failing memory on how to save variables in a txt file using FSCommand.

It was something like :
FScommand("MyFile.txt", SAVE);

Saving To A Ext Text File
i am new to flash and i want to know the simple way to save information to an txt. file.

Saving A TXT File To A Server From An SWF
Is their a way that flash can save to a .txt file on a server????

Saving To A Text File
Hello,
I am trying to create a project that saves variables to a text file. Flash is able to read data in from text files, but not write to them. I understand there is a work around using the "exec" command. I have only seen it with Flash 4, does it work with Flash 5? I have seen a couple variations of this......

Code:
fscommand ("exec", "command.com" add chr(9) add "/c" add chr(9) add "echo" add chr(9) add "text3=" add TypeVar add ">c:content.txt");

Code:
fscommand ("exec", "c|: extsavesaver.exe" add chr(9) add variable1 add chr(9) add variable2);
I am looking at a couple tutorials from here, but I cannot seem to get them to work.
notepad-Emad_Ham-3431
Rune Studios Flash Tutorial
Save to disc- Guy Watson
I am on a Windows Millenium OS, wondering if that might be a problem? Anyone know of an easy to follow tutorial of how to save data to a text file?

Thx in advance
~GD~

Saving Into A Text File....HELP ME
I want save information into a text file from a .swf

I want to get flash mx to save into a .txt file.
(.swf not on the internet(just running off the computer).)

can anyone help me, source code would be helpfull....

Saving To External File
Is there a way to save an array or a variable to a txt or xml or i dont know what kind of file without using a server ?

I think that d be fun !




Regards

Me

Saving To External File
Is there a way to save an array or a variable to a txt or xml or i dont know what kind of file without using a server ?

I think that d be fun !


Regards
Me

Saving A File To Harddrive From A CD Rom
Does anyone know if its possible to save a file from a Flash created CD Rom with the click of a button?

Example: Save a PDF file to your hard-drive...

cheers,
bossanova

Saving To An External File. PLEASE HELP
Ok, I want an application that the user inputs data into a text field and when they push the "save" button, it saves it to an external file maybe in the "my documents" folder on their harddrive. Does any one know any good tutorials for that kind of thing? To save information to a file?

For Flash 5 or Flash MX.

Thanks in advance.

Saving Variables On .txt File
I need to save some variables into a text file on c:windows emp I have an old tutorial for flash4, that uses FScommand to achieve this, but in c: not c:windows emp. I tried to change the path, and although the msdos window pops-up, no file is created. How can I fix this? I attached the .fla tutorial

PS: the Flashkit "new" search sucks and blows in the same time. When it actually returns something (not very often) it is so irrelevant it makes no point wasting your time looking through the results. The old board had a perfect search function. I know my question was answered 100 times before, yet I cannot find one relevant result. Any help is appreciated

SAVING To A Text File
I can get data from a text file... but how do I save to one?

:mr:

Saving A Particular Frame As A File
Hi everybody,

is it possible to save a partcular frame as a file (for example as a JPEG)? I know I can export JPEG's. But is it also possible with Actionscript?

Thx cuaris

Saving A File From Mx As Flash 4
Hi
Can any one help me? I need to save out a file from Flash MX as Flash 4 file. There is only an option there to save as Flash 5.
Would very much appreciate help.
Thanks a million

Fscommand For Saving File
hey all,

i'm working on a project that would be run in a projector.

Now, i need to save a file (with some data the user inputs) to the hard drive in a folder the user should be able to choose.

Is there a way (fscommand i guess) to have a directory browser presented to the user that would return the path of the chosen dir ?



Thanks already.

Saving Vars To A .txt File
Hey hey,

Trying to get some actionscript on the go to save a variable to an external text file. I managed to get my var to load from my external file using LoadVars.load.

Can I use the same function to .send my vars to the file?

I came across some documentation earlier that claims FScommand will not work with OS X, and I certainly couldn't get it to work.

Any advice would be appreciated.

Saving Abd Loading From Txt File
Have you ever read and write to an external file in flash? E.g if
variables are contained in this text file and loaded in?
I can find one way but all the variables need to be on one line in the
text file like so:

VARIABLE1=00&VARIABLE2=01&

So:

VARIABLE = NAME
00 = VALUE
& = SEPARATER

Bit messy though if you have loads of variables, esp if someone else
wants to edit it.
Any ideas? I know XML can be used, but not the easiest!

Saving To An External File
I was wondering if there was a way to save something as an external file. To give more insight, here is my situation:

I have a flash document which a user inputs text(Dynamic text box) to create a type of document for themselves so that they can save it by clicking on a drop down menu and selecting Save. I know how to do everything there, except the "Save" part(pretty much the whole thing ). Is there a way to directly save a file as a certain name, and type, but, when clicking on "Save" it will open another window inside my flash document which will have a Dynamic text box that will ask the file name and extention, and when you finally click OK in that box it will save to a file? Or is there another way? Or is there any way at all?

I'm using Flash MX.

Thanks a lot.

Saving To A File (Flash 5 + Xml)
I just cant figure this out. How does flashplayer save its XML to a file? I know it is possible, all I want it to do is save. Example: I have XML script for Flash. It is for a game, and new highscores are saved directly from the flashplayer to a file called "highscore.xml" on the same directory. Can someone help with a basic script of the solution?
Thanks for any help

Saving To Text File
I am almost out of patience (and time)and resorting to the seeking HELP! I am trying to save variables back out to a text file. I have no problem loading the varibles (using LoadVars). However, when I go to save it get Sh**. I do not receive any errors and all seems well except that nothing is saved. I have tried saveandLoad(), the fscommand("save"...) as well as shared objects all with the same result.. No change to the external text file.
I have pulled every example I can find from Flash Bibles to the various forums, yet they all talk about the above methods and how they 'should' work.
What is it that I am missing or not doing that would prevent any one or all the above methods from not working. Can anybody provide me with insite or better yet an that works (100%) so that I can see if it is me or something else?
downright

Saving Mpg File From Flash
Hi,

How do i save mpg file from flash, if i write ---- getURL "file.mpg" it opens me in the browser itself. Is it bcos it is in the standalone machine and not in a server.

pls help,

Kaustubh

Saving Or Updating A XML File
Hi All,

I was trying to get data from xml file to a Datagid in flash Mx 2004

its really cool thing, but I couldn't update the xml.

Is it possible to update. if yes can any one proved any tutorials for it

Regards,

Saving To Text File
is there any way to save variable content into a text file ?

For example :

x = "this is a string";

save("c:debug.txt", x); // saving x to text file

is this possible ?

Saving Data To A File
i've been loading my variables (using LoadVars) from a .txt file and am now faced with the problem of saving the variables back to the .txt file (on the server). I have 2 questions:

1: when converting my arrays back to strings, I have just used the .join(",") command, is this correct or do I need to then define it as a string?

2: what is the easiest way of saving the file? I have a .php script that I could utilise but im not familiar with the language.

Saving Data To XML File
I can read data from an XML file and show the data in Flash but I don't know how to save the dave to an XML file.

Actually I have two input box in Flash called:

"Name" and "Email"

and I want if users fill their name and Email id and press on the Submit button, their name and email id save in an XML file.

Is their any tutorial for this.

Please let me know.

Thanks in Advance

File Saving Problem: Mac OS X
Hi,

My cousin sent me a flash document. It was only 144kb when he sent it to me. So I add a little more to it, and I also insert a song, which is 5 megs big. So after I am done, I save it. And while I am sending it to him, the file became a whopping 42.3 megs!! What the?? So I deleted the song from the document to see if it brings the size down. I saved it, went to Get Info, and the size did not change. So I delete the entire contents of the document, saved it, and checked the size again, and the size still did not change. I deleted the flash preferences, and did not help.

I tried with a blank document, inserted the same 5mb song, and I did save as. The document is a 38.1mb file. This has never happened before. Any ideas whats going on?

Thanks.

Help Saving A File To The Server
we need to be able to save to our server from the program we have on the net. so if someone designs a window they can hit save and it will save it to our server

is there anyway this can be done??

to see what we are trying to do go here

www.middlefieldglass.com

and then click on high speed dsl
then on any of the doors
then on the door that appears on the stage

you will then be able to design that door and what they want to do
is when a person is done designing that door for that image to be saved along with the information provided to a spot on our server only becouse we can not find a way for the user to email us what they have done.

Copyright © 2005-08 www.BigResource.com, All rights reserved