Topic: actionscript write to text...? (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: 1393 |
![]() Is it possible to have flash write to a text file on the fly? |
Paranoid (IV) Inmate From: Florida |
![]() |
Paranoid (IV) Inmate From: 1393 |
![]() 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? |
Paranoid (IV) Inmate From: Florida |
![]() Wouldn't be much of a programming language if it couldn't be. |
Paranoid (IV) Inmate From: 1393 |
![]() That's what I'm afraid of... From what I can find it seems it can't |
Maniac (V) Mad Scientist with Finglongers From: Germany |
![]() Let's get back to what you're actually trying to do. |
Paranoid (IV) Inmate From: 1393 |
![]() 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. |
Maniac (V) Mad Scientist From: :morF |
![]() 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. |
Neurotic (0) Inmate Newly admitted From: |
![]() 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? |