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




Display And Then Write To Txt File?



Hey guys.

Im new to PHP.

Im wanting to update a txt file from flash.

So in my flash movie it will display the text of the text file, which i can edit then save it to my txt file.

The purpose is for my client to update his news section online instead of using an FTP program.

I was wondering if there was any tutorials or advice on how to achieve this.

Shaun



FlashKit > Flash Help > Flash ActionScript
Posted on: 12-09-2002, 01:19 AM


View Complete Forum Thread with Replies

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

Write On Text Effect - Display Different News
Hi,

Does anyone know how to modify this tutorial (Write on text effect) in order to:

- have some text appearing
- wait a few seconds
- have it disappearing
- new text coming... and so on

As the last one has been displayed, it starts all over again.

Thank you very much for your help,

Paolo

Write Or Change Text(XML)file From A Swf-file
An swf-movie that loads and reads a text( XML)-file from the web thats what I did so far. My Question is now: is there a possibility to save an XML on the local hard-Drive to use it offline? I know this sharedObject-Thing but what I want is a textFile on its own, so that the User sees it in the same folder with the flash
movie and has no problems to copy them both together to his offline Computer.
Any help would be very nice. Thanks

Write To An Action Script File (.as) File
Can you write to and save to action script file? Ya know the ones you can make in Dreamweaver that have the .as extention? Php?

Thanks!!

Write To A Txt File?
Hi, I have forgotten how to write a variable to a text file.

Can someone please remind me..

Cheers,

M@

Write XML File
Dear guys,
I need update a XML file, exactly I have to change some attributes.
At this moment the procedure that I've wrote is explained below:

FILE XML (miofile.xml)

<principale>
<progetto_1 attributo_01="animale_01" attributo_02="animale_02"
attributo_03="animale_03" ></progetto_1>
</principale>

FILE PHP (miofile.php)

<?
$fp = fopen("miofile.xml","w");
$prova = $mioXML;
fwrite($fp,$prova);
fclose($fp);
?>

NOW THE ACTION IN FALSH (after the download about miofile.xml):

on (release) {
mioXML = new XML (provaXML);
mioXML.firstChild.childNodes[1].removeNode();
nuovo = mioXML.createElement ("progetto_01");
nuovo.attributes.attributo_03 = testo_03;
nuovo.attributes.attributo_02 = testo_02;
nuovo.attributes.attributo_01 = testo_01;
nuovo.appendChild(attributo);
mioXML.firstChild.appendChild(nuovo);
loadVariablesNum ("miofile.php", 0, "POST");
}

QUESTION: to update an attribute you must delete all node and recreate it writing
all attributes, or exist another method maybe easier?

where testo_01 testo_02 e testo_03 are input fields ...
send and the result is:

<principale>

<progetto_01 attributo_01="mucca" attributo_02="topo"
attributo_03="cane"></progetto_01></principale>

HERE THE ISSUE:

1- the slash --> (es. attribute_01="mucca")
I don't Know because create them( ); then with slashes the document will be a non valid XML

2- the right method to send all should be using send() and not with loadVariable; but
If I try with send() (es. mioXML.send( miofile.php ) don't write anything.... maybe is wrong the concept of PHP file?

But aboveall is the procedure right?
In particular about the PHP file, I write the file TXT using PHP, but I don't Know if is the same for XML

Thanks in advance
Roberto

How To Write A Txt File?
How should it be structured?
i've tried text="this doesn't work."

basically I'm wanting a dynamic html text field to read a and load in a txt file...
loadVariables ("data.txt", "");

help ..i need some now!
stu

How Do I Write A Txt File?
a txt file that will be loaded into a text field~?

How To Write To Doc File
Is it possible to have a button save the text in a flash movie into a doc file it would be ideal if it were possible that that text is said to input text so people can fill it in first...

Tx in advance ...


If you dont think its possible could u let me know as well ?

Write Txt File
Hi

How can I write the result of one flash quiz in a TXT file?

And can I load any variable of this TXT file to Flash?

Tks

Write To A Txt File W/php
all i want to do is allow people to leave me a message using a little form that will send variables to a php script which will in turn write the variables (such as name, email, and comments) to a text file for me to read at a later time. im decent with AS, but i don't have much experience w/scripts and external stuff so id love some help on this. thanks in advance

Write To .txt File?
Can someone tell me how to create a form area that writes to a .txt file on my local drive?

No servers cgi etc.... Just for a local application


thanks...

Help I Need To Know How To Write A .BAT File
I need a .BAT file to start my Setup.exe file in the fscommand folder for a Flash MX standalone player but I've no idea what to type.

I tried opening Notepad & typed

Dialup (this is where the setup.exe file is stored)
Setup.exe

and saved the Notepad file as a .BAT. However I keep getting "bad command or file name" response when the BAT file runs.
So what am I supposed to type??

Possible To Write To A .TXT File?
Instead of loading text from a .TXT file I am trying to figure out how to write to one. Does anyone have any ideas?

I'm using FLASHMX

I have a site that is utilizing .TXT files as the content source. But I get nervouse about having my sales people sales people, with 18% computer knowledge, updating these files without disrupting the code. I figure I could make an interface that they could input there info into. It would update the TXT files, thus the site would be updated aswell. Without them every having to look at code.

Possible To Write To A .TXT File?
Instead of loading text from a .TXT file I am trying to figure out how to write to one. Does anyone have any ideas?

I'm using FLASHMX

I have a site that is utilizing .TXT files as the content source. But I get nervouse about having my sales people, with 18% computer knowledge, updating these files without disrupting the code. I figure I could make an interface that they could input there info. It would update the TXT files, thus the site would be updated aswell. Without them every having to look at code

So the content will either have to be formatted with code, or input into the txt document in spedified places

Write To File.
Hello again everyone,

Stright out what I am trying to do: write to a .txt, or .dat file.

2 methods just came to me but dont know if, 1. They will work, and 2. How to do them....

method 1: write a c++ program to write the variables to a txt or dat file.

method 2: save another flash projector(.exe) as flash 5, and target and use that movie in this movie in which I am trying to save variables to a txt or dat.

I do have some doubts though... In method 1, I'm not sure how to approach getting the flash variables to transfer into my c++ program...Any Ideas?!...

In method 2, I know that there is a way to save my movei as a flash 5 .fla... the question is, Will it recognize it as a flash 5 swf and exe... and if so, will it have that same undocumaented save function?

Thanks for any feedback that comes from all of you..

Peace,
~Bill

THANKS AGAIN!

Write To A .txt File (PHP)
Here is a PHP file upload that moves a .jpg to a folder called "uploads" and posts it up online to see. Great script. Heres what i want it to do though. I want the name of the file to be witten on a .txt file named: fileNames.txt after its been uploaded.


PHP Code:




<?php
if ($HTTP_POST_FILES['file']['size'] < 50000)
{
move_uploaded_file($HTTP_POST_FILES['file']['tmp_name'],
'uploads/' . $HTTP_POST_FILES['file']['name']);
echo '&status=ok&';
} else
{
echo '&status=error&';
}
print "<img src="uploads/" . $HTTP_POST_FILES['file']['name'] . "">";
?>







Thanks!!

Write To .txt File (PHP)
Here is a PHP file upload that moves a .jpg to a folder called "uploads" and posts it up online to see. Great script. Heres what i want it to do though. I want the name of the file to be witten on a .txt file named: fileNames.txt after its been uploaded.


PHP Code:



<?php
if ($HTTP_POST_FILES['file']['size'] < 50000)
{
move_uploaded_file($HTTP_POST_FILES['file']['tmp_name'],
'uploads/' . $HTTP_POST_FILES['file']['name']);
echo '&status=ok&';
} else
{
echo '&status=error&';
}
print "<img src="uploads/" . $HTTP_POST_FILES['file']['name'] . "">";
?>




Thanks!!

How Can I Write To An XML File
Hi all
i just want to know how to write to an XML file from flash of course.
and how to create one if posible?
thnx

How Can I Write To An XML File PLEASE
Hey pepole i need to know how can i write any variables to an XML file in the run time
please i need to do that BAD
thnx again

[MX] Write To File
hi, i want to write a file to my server from a flash form. does anybody know how i can do this? i have 2 text fields. 1 for the users name and the other for their text. the file has to send to a specific folder on the server.

thanks

[F8] Write To An XML File
Is it possible to load in an xml file and edit it using a swf movie

the idea is that i've created a slideshow for a client and it is completely dynamic but to use it for a different slideshow, they have to edit the xml file, which can be difficult not to mess up the file, so i want to create another flash movie that they can edit the xml file from easily without the chance of messing anything up

thanks
sand_monkey

Can AS3 Do File Write?
I've always used URLLoader and PHP for this, but can AS3 natively do file writes, either server or locally?

I was going through netstream today, and apparently that can do file writes both locally and to a Flash media server. Is there anything similar to this, say for writing text or xml files?

Thanks.

sphoenixee

CSV Or TXT File Write
I have a quiz application and need to collect the user name, date and score into a .csv or .txt file.

I have Flash CS3 and it is great at reading files but since my server does NOT support PHP or ASP etc it looks like I am out of luck.

...or, is there something I am missing?

Thanks

Ron

Write Into TXT File
hi everybody, my question is the next:
can i write data into a txt file from flash?

i want build a aplication that store some text from flash, i dont want use a database because the information is very short.

tnks4all

Write In A .txt File
hi
i want to know if i can write a text in .txt file from a swf file.
i am searching for a method that work in a client-side way &
non-html base.(i want use it in a full flash multimedia cd)
tanX

Write A File
Is there anyway where flash can write to an external textfile without using php, just pure flash? if yes, can you please help me on this. thank you.

How To Write An XML File?
I am a newbie to actionscript and I was hoping someone might help with this.
I am trying to load an xml file into my movie and then when a button is pressed write the xml file.

Here's the code (I've put this code on a new layer, first frame):
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = function(success) {
if (success) {
trace('data.xml loaded. Contents are: '+this.toString());
}
};
xmlData.load("data.xml");


The code for the button :

on(press){
var event = 1;
trace(event);
var element:XMLNode = xmlData.createElement("element1");
xmlData.appendChild(element);
trace(xmlData);
}
Practically what I want is that the value of the variable event gets written in the XML file.
Can someone help me?

Thank you!

Write In A .txt File
hi
i want to know if i can write a text in .txt file from a swf file.
i am searching for a method that work in a client-side way &
non-html base.(i want use it in a full flash multimedia cd)
tanX

Write To File
I have some buttons on a site that lead to other sections.
What I want is to whenever a user clicks a button a HIT is added to an external txt file, something like a counter.

User hits button - > txt file = 1
User hits button again - > txt file = 2

and so on...

Any solutions or suggestions.

Can't Write To A File Using File Class
hi every body
I wanna write into a file for logging purpose, but I always got an error when I write to the file ...
the code is:
--------------------------------------------------------
if(!logFile.isOpen)
logFile.open("text", "write")

var date = new Date();
if(logFile.canWrite){
trace(">> I will write ...");
var message = "TIME >> " + date.getDate().toString() + " : ERROR CODE >> " + infoObject.code + " : LINE NO >> " + infoObject.lineno.toString();
logFile.write(message);
logFile.flush();
}
logFile.close();
--------------------------------------------------------
I got an error says: File operation writeln failed
and also may say: File operation flush failed

thanx

No Db So Write To Text File?
Hi

In my flash movie i have letters placed all over the shop. The idea is that people can drag the letters and make their own sentences/words etc.I'd like for visitors to mess around with the letters and then click a button to continue.

This same button then sends the current x and y coordinates for each letter to a script of some kind (cgi would be nice and easy to set up on my server) that writes to a text file.

When the movie is revisited it loads the variables stored in the text file and positions the letters accordingly.

2 questions:
1.Anyone know how i can write this text file from flash? I now i can send variables using POST or GET to a script - but where do i start looking for such a script?
2.How do i change the values of the variables (within the text file) so that they are numbers and not strings. It's currently seeing letterXpos="10" when it should be letterXpos=10

cheers - Mike

Write To A Text File
Hello,

I need my Flash 5 Stand alone player to write to a text file when a user clicks on a button.

The trick is though, I cannot use and .asp,.cfm,.php, or CGI etc. I just need it to write/addem directly and be transparent from the user.

Any thoughts?

Thanks...Rob Walters

Write To Text File
Hi.

The answer to this is probably simple, and I probably deserve to go right to the Newbies area, but here goes anyway:

How the hell do I write a variable's value into a text file? I can read them out, but not write them in! I've tried messing around with come ideas, but with no such luck.

Thankx

Read And Write File
Hi,

I have a flash application runing localy to a PC, using the browser.
I want to read and write a text file on this PC in the same directory as the flash file one.
I don't want to use cookie as the text file.

I know how to read the file with "loadVariables()" but I don't know how to write.

How can I do it ?

Thank's
Michel

Is It Possible To Write A Txt File From Flash?
Here's my dilema: need to write a config file for a flash interface so that when flash loads up, it grabs the vars from the file. The thing is, I want to be able to create the config file from a seperate flash movie.
Is this possible??
I'm sure there is some kind of combination of actionscript and XML that will do this, but since I am fairly new to XML I'm not sure how to approach this problem.
Any help would be greatly appreciated.
Kiyo

Can Flash Write To A Txt File?
I know that flash can read from a .txt file but can it write to one?

The reason I ask is that I have a software program that i need to make that will work on a laptop and store the info collected untill a interent connection is made to transfer the info to a database. Any ideas?

Thanks
Mike

How To Write Ext File On Mac Through Flash
HI
I need to write a text file on MAC OS to store some data from flash stand alone application.

I have manage to do the same on PC using FScommand("exec","xyz.exe") and writing an exe file using c++.

is there any way to do the same???
bye
Ajay

Want To Write To File(.txt) Without Java/cgi/php
look i am newbie to flash i am using it about a week (flash MX) i alredy built my site with it . and now i am trying 2 create chat like game launcher . (style gamespy) in oreder 2 do so , i need ppl to send there ip and name with game discription to some file on the server , in oreder that other ppl will see it .
the problem is i dont know java nor cgi asp or php .

if someone could send me the code 2 one of this , or just tell me how 2 do it without them i will be thankfull

Possible To Write To Txt-file OFFLINE ?
Does anyone know if it's possible to write to a txt-file OFFLINE. I'm working on a cd-project in flash mx but i have to store some variables on disk. Can anyone help me?
TX

Possible To Write From Flash To .txt-file?
Is it possible to write a variable to an text-file when i press a button? If yes, how?

THX!

Can Flash Write To A File?
G'Day all,
my question is simple, can Flash write to a file??? If it can it's happy days but if it can't I think I'll have to come up with some sort of ASPX patch or something. I'm building a juke box and need to be able to collect the file names of mp3's etc. The other thing that may help is if there is any sort of file object in MX that I can use to store the names of songs in memory?????

Can We Write To Text File
I know how to read from a text file. I have a question whether can we write to a text file?

Write Variables To A File
I have a game: (Flashteroids) that has an online hall of fame. The scores are currently handled by a PHP script that inserts scores depending on their relative values, they are then stored in text files on the server, basically as two arrays (names[1-20] and scores[1-20]).

I want to do more with the scores and sort them myself in flash, I've got this part working but now want to save them to text files ideally bypassing the php file.

- Is it possible to use loadvariables to write variables to a text file?

- If not, how can I write a simple PHP script that just reads in and then writes back to a text file?

Thanks,
Adrian

How To Write To Text File Without Asp/php
does anyone know how to write to a text file without using asp/php etc?

Php Write To Text File
hello, i have been trying to figure this out for many days, i have tried many tutorials but nothing is working. how would i save a Name and comments fiels to a text file using php. i have gotten my tutorials to work but when i copy and paste the script i can't get it to save it. i hope you understand. thanks for the help. patrick

Write To A Text File
Is there a way to create a form in flash and have the results of the form write to a text file. I need a form to use at a tradeshow where people will enter their contact information and hit submit. We will not have Internet access. After the show, I want to access the text file which would just be on my local machine ( laptop )

Thanks

Write Variables To A File?
i know how to read a variable from a file, but how do i write a variable to a file?

i.e. i want to write the var _root.score to a file.

How To Over Write A Flash File.
I created a flash banner, then updated it by over write it with a new new version. However the old version still keeps on appearing. I have even deleted the flash banner totally form the server and the banner still came up. I flushed my pc memory and have tried it on other pc's and it's still there. Is being save on the server memory? There has to be a quick way to over write this. or even delete it and upload a new version. ????

Thanks

Write To A Text File
I'm making a game for school, and when someone beats a high score I want them to be able to enter their name. How do I have Flash write to an external txt file, with no PHP or anything (its going to run on a computer with the txt file not having to be on a server or something like that)

Any ideas?

Thanx Much

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