Topic: actionscript write to text...? Pages that link to <a href="https://ozoneasylum.com/backlink?for=28604" title="Pages that link to Topic: actionscript write to text...?" rel="nofollow" >Topic: actionscript write to text...?\

 
Author Thread
redroy
Paranoid (IV) Inmate

From: 1393
Insane since: Dec 2003

IP logged posted posted 11-02-2006 19:20 Edit Quote

Is it possible to have flash write to a text file on the fly?

reisio
Paranoid (IV) Inmate

From: Florida
Insane since: Mar 2005

IP logged posted posted 11-02-2006 20:37 Edit Quote

...
http://www.google.com/search?q=actionscript%20write%20to%20text%20file

redroy
Paranoid (IV) Inmate

From: 1393
Insane since: Dec 2003

IP logged posted posted 11-02-2006 23:11 Edit Quote

Yeah, tried that, it doesn't get too far. In most circumstances (I imagine) people just pass to php or whatever and let that do the work, because that makes most sense... I'm wondering if anybody knows if flash/actionscript itself can write to a text file on the fly or during run-time. So if a certain function is called within flash it writes or updates specified vars from flash into a text file. Can it be done?

reisio
Paranoid (IV) Inmate

From: Florida
Insane since: Mar 2005

IP logged posted posted 11-03-2006 04:57 Edit Quote

Wouldn't be much of a programming language if it couldn't be.

redroy
Paranoid (IV) Inmate

From: 1393
Insane since: Dec 2003

IP logged posted posted 11-03-2006 15:36 Edit Quote

That's what I'm afraid of... From what I can find it seems it can't

Tyberius Prime
Maniac (V) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

IP logged posted posted 11-03-2006 16:36 Edit Quote

Let's get back to what you're actually trying to do.

Why would you write to a 'text file'?
Where would that text file be stored?
On your server? The answer's PHP or another server side language, plus XML inbetween.
On the client? What you're going to store in it? Flash local storage might be more appropriate.
Writting a file directly on the client's file system probably won't be possible - or would you like any
random flash applet to access your files? (there is 'signed code' but...)

so long,

->Tyberius Prime

redroy
Paranoid (IV) Inmate

From: 1393
Insane since: Dec 2003

IP logged posted posted 11-03-2006 17:04 Edit Quote

The text file would be stored on the server... but let me back up, what I've got is a swf file that is pulling in xml and displaying some "ads" randomly from the list. What I'm trying to do is get an accurate count of what ads are actually displayed without a page refresh. I can get it working fine passing to php but that constitutes a page refresh (as far as I know). So, in my ignorance, I was thinking if flash could just keep count on a text file I could securely tally it later w/ php.

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

IP logged posted posted 12-06-2006 12:20 Edit Quote

Well, if you have the Flash movie internally link to the PHP, it doesn't count as a refresh of the page the movie is located in, only a load of the PHP page. It's also a hell of a lot more secure to have your movie pass to PHP rather than give the movie privelidges to write a file to a server that, by the time it's running, it's no longer located on. By the time the flash movie is running, it's been downloaded to the user's computer. Not exactly an ideal security stuation.


Justice 4 Pat Richard

zz_james
Neurotic (0) Inmate
Newly admitted

From:
Insane since: Jul 2007

IP logged posted posted 07-03-2007 11:58 Edit Quote

I am using flex to construct a simple interface that produces XML which I can load into another application, e4x makes constructing the XML a breeze but now how do I save the XML as a text file (locally) using AS3?

any ideas?



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu