Using PHP to Create XML; Accessing via Flash -


i working on project need continuously create , update xml file. feasible way php; can't use filereference in flash because save as; cannot use filestream because i'm using flash player, not air; don't want use sharedobject because need user able access data in xml multiple computers.

basically, whenever user clicks on something, flash grabs color of object. need put color, each time clicked, xml file (there 1 file; stores of colors, , continuously updated). reason needs continuously updated because there no save button; once user exits page, they're done. need progress saved.

is there way generate xml using php/flash? understand how generate xml file in php, i'm unsure on how update using flash (which uses php).

the main idea have right use loader in as3 php file, grab php file's data, xml file. once load php file in flash, can modify xml file using flash? if not, how modify using flash php?

sorry if confusing; spent hours creating couple different ways using filereference/filestream, find out not i'm looking for.

i don't think want load xml file flash , modify there. if you'll modifying data locally. since there no save button, data lost when user closes page, unless continuously sending xml file server. that's lot of unnecessary traffic.

a better solution might post color value php script each time user clicks object. php add database or xml file.

you'd send values via urlrequest.

something this:

var loader:urlloader = new urlloader();   var request:urlrequest = new urlrequest("myscripturl.php");    request.method = urlrequestmethod.post;   var variables:urlvariables = new urlvariables();   variables.userid = "doug";   variables.colorvalue = "blue";   request.data = variables;    // add handlers completion, errors, etc (see docs)   loader.load(request); 

Comments

Popular posts from this blog

java - HTTP Status 500 - An exception occurred processing JSP page /second.jsp at line 15 -

SQL Server - MyCTE query based on 24 hour period (next day) -

php - Using str_replace to translate a MySQL Table in html -