PDA

View Full Version : XML File Creating & Changing


Lost@Sea
08-05-2009, 10:38 AM
I am trying to create an App which needs to create a localized XML file(on the users machine). This file needs to be editable to change the data, or data added within the XML file as the user progresses through the program. Is this at all possible, and if yes, how would I get flash to do this?

Thanks :)

Aberrant
08-05-2009, 02:56 PM
Hello Lost@Sea

Are you asking so you may then inject a remote code onto the unsuspecting user's machine? :eek:

Question: Why are you seeking to create a localized XML file on the user's machine? For Flash game save datum/data? :rolleyes:

Lost@Sea
08-05-2009, 04:09 PM
lol, oh hell no... can you do that?? Actually my motivation is not so sinister really. I am trying to create a training course, which gets distributed via CD (and one of the places is Africa (which still all places don't have a broadband connections, and still rely on dialups) So they can do their training off-line, and then when they (or if they can) dialup, or get a place with a connection, then they are able to click an upload button (within the flash app), which then sends whatever information they have filled in, to our server, or perhaps e-mail it to a pre-defined address. The XML file was the only "cross-platform" sort of file that came to mind, because some of the data needs to be extracted by another program (been developed by a different company, not myself). So the XML file format seemed the most "compliant" to use.

tadster
08-06-2009, 09:02 AM
you'll need to use shared objects which are like cookies the Flash Player can store on a users computer. (with permission) Then when they get online have the flash send the data from a shared object to the server that then creates an XML page for whatever.

other than shared objects you can use the external interface and have javascript store a cookie, and then get the values from it to send to the server.

Lost@Sea
08-06-2009, 09:40 AM
The flash is going to be published to an executable file, and won't be running in a web browser, would this still apply to that scenario tadster?

tadster
08-06-2009, 02:57 PM
I think that you can still use shared objects from a standalone flash, yes. I'm not positive though.

Lost@Sea
08-06-2009, 03:04 PM
Would they be "cross-Platform" compatible, like an XML file? Also, where about do these shared objects get saved? Can it be specified, because obviously the program can run from the CD, but then where does the shared object (file) actually go? Especially when I'm looking at having it run in Linux/Windows/Mac enviroments.