This content has been marked as final. Show 2 replies
Flash itself has no filewriting capabilities other then the SharedObject
But why can't you call a php script? You could install apache, PHP and
MYSQL on the computer running the Flash app and get it all into the
database in one go.
Otherwise you either need to get going with AIR (Adobe Integrated
Runtime), or use a wrapper application like Adobe Director (which has
tons of ways to write to file through it's plethora of Xtras.) Director
may be 'a bit' hard on your budget if you only use it for this purpose
The XMLSocket is for connections to some server, local or remote, not to
> First, I'm using Flash CS3, and Actionscript3.
> I'm trying to set up a data collection form that will save the results to a
> file that can later be imported into a database. This is going to be in a Kiosk
> at a tradeshow and it won't have internet access, so I can't send it to an
> online PHP or ASP, etc, script.
> The form also has several screens, so i thought I'd try to use the Form
> Application (I know I can only have one frame on the timeline when using this
> flash template with the data components). I want to try and write the data to a
> XML file. All the information I've found is for importing data from an XML file
> to a web server rather than sending data to an XML file on a local computer.
> I'm trying to use the XML connector,and an XML file that resides in the same
> folder as my Flash file, but so far I've had very little luck writing to that
> XML file. Do I need to set up a dataset to send the form data to that will then
> send the data to an XML Connector component that will then send the data to the
> XML file. Should I use LoadVars instead, and if I do, will I have to write to a
> script, or can it also write to an XML file.
> If any one has a better idea to do this, please let me know.
Thanks for your input. I was starting to suspect that Flash would require some sort of server to connect to. I may try setting up that computer as a webserver.