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!
ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 06-03-2005, 02:09 PM
View Complete Forum Thread with Replies
Sponsored Links:
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???
View Replies !
View Related
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???
View Replies !
View Related
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???
View Replies !
View Related
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!
View Replies !
View Related
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?
View Replies !
View Related
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...
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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.
View Replies !
View Related
[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
View Replies !
View Related
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!
View Replies !
View Related
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
View Replies !
View Related
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?
View Replies !
View Related
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
View Replies !
View Related
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.
View Replies !
View Related
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
View Replies !
View Related
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~
View Replies !
View Related
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.
View Replies !
View Related
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
View Replies !
View Related
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.
View Replies !
View Related
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.
View Replies !
View Related
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!
View Replies !
View Related
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.
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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.
View Replies !
View Related
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
View Replies !
View Related
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.
View Replies !
View Related
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.
View Replies !
View Related
Saving To Text File
Hi, I'm pretty new to Flash and Actionscript, and hope that someone can help with the problem. It seems to be something that I would have expected to be fairly simple but doesn't seem to be after searching online.
I'm using Flash MX, and making a quiz. I'm using one of the quiz templates, but have adapted the interface. On the final screen (with the score) I want people to be able to input their details, and then submit these (along with their score), to be saved in a text file (or database). The quiz will not be running from a server, it is intended to be run from the hard disk and the results saved to the same computer.
If anyone could help with this at all I'd be very grateful!
View Replies !
View Related
Saving To Txt File Using PHP.. Not Working..
hey,
anyone know what im doing wrong here?
code:
submit.onPress = function(){
if(Name.text!="" && Age.text !="" && Location.text !="" && About.text !="" && Skills.text !="" && Image.text!=""){
myData.Name = Name.text
myData.Age = Age.text
myData.Location = Location.text
myData.About = About.text
myData.Skills = Skills.text
myData.Image = Image.text
myData.sendAndLoad("save.php", myData, "POST")
}
}
myData = new LoadVars()
myData.onLoad = function(){
if(this.writing=="Ok") {
gotoAndStop(2)
status.text = "Submited data was saved"
} else {
status.text = "Error in saving submitted data"
}
}
stop()
the name of my button instance is submit, when i press it nothing happens, it doesnt go to frame 2 or save anything to my text file.. this is what is in save.php.
PHP Code:
<?php
$name = $_POST['Name'];
$age = $_POST['Age'];
$location = $_POST['Location'];
$about = $_POST['About'];
$skills = $_POST['Skills'];
$image = $_POST['Image'];
$toSave ="Name=$name&Age=$age&Location=$location&About=$about&Skills=$skills&Image=.$image";
$fp = fopen("data.txt", "w");
if(fwrite($fp, $toSave)) echo "writing=Ok&";
else echo "writing=Error&"
fclose($fp);
?>
data.txt is just a blank text file.
why does this not work?
cheers,
var.
View Replies !
View Related
|