Re: [Flashcoders] Incorrect XML from PHP to Flash

2011-07-21 Thread Karl DeSaulniers
Hi Cor, I think it is because information added to a database is usually escaped, so when you pull it out, you get the escaped string instead of what you originally typed. Most, not all php coders, will put the string through something like mysql_real_escape_string() before inserting it

RE: [Flashcoders] Incorrect XML from PHP to Flash

2011-07-21 Thread Cor
Hi Karl, Thank you! I already use mysql_real_escape_string() to write to my database. And in fact I am reading the http://www.php.net/manual/... at the moment you send your mail. I do think it has to do with using URLVariables in Flash rather than my database or PHP. I have looked at the

RE: [Flashcoders] Incorrect XML from PHP to Flash {RESOLVED}

2011-07-21 Thread Cor
OK, so when I change the output line in my PHP from: print $response; to print returnString=$response; It traces out a correct XML: ?xml version=1.0 encoding=UTF-8 ? dataprojectproject_code![CDATA[1]]/project_codeproject_datum![C

Re: [Flashcoders] Incorrect XML from PHP to Flash {RESOLVED}

2011-07-21 Thread Karl DeSaulniers
Good to hear. Best, Karl On Jul 21, 2011, at 2:34 AM, Cor wrote: OK, so when I change the output line in my PHP from: print $response; to print returnString=$response; It traces out a correct XML: ?xml version=1.0 encoding=UTF-8 ? dataprojectproject_code![CDATA[1]]/

RE: [Flashcoders] Incorrect XML from PHP to Flash

2011-07-21 Thread Cor
The trace result of my DataProvider is: data project project_code![CDATA[1]]/project_code project_datum![CDATA[2011-07-19]]/project_datum project_naam![CDATA[project naam 1]]/project_naam project_omschrijving![CDATA[project omschrijving 1]]/project_omschrijving project_werkzaamheden![CDATA[project

Re: [Flashcoders] Incorrect XML from PHP to Flash {RESOLVED}

2011-07-21 Thread Henrik Andersson
Cor skriver: OK, so when I change the output line in my PHP from: print $response; to print returnString=$response; So flash expects a key-value pair!!! Now the real question is, why is Flash expecting that format to begin with? You shouldn't change your php code. You should change the

RE: [Flashcoders] Signals in Robotlegs

2011-07-21 Thread Merrill, Jason
I just use Joel Hook's stuff. I wouldn't know if Lindquist's methods are better, but Hooks classes work just dandy. I use any of the Signals-specific stuff for Robotlegs like SignalMediator instead of Mediator, SignalCommand instead of Command (though in general, you can just use Command) and

RE: [Flashcoders] Incorrect XML from PHP to Flash {RESOLVED}

2011-07-21 Thread Cor
Thank you. I have: var myXML:XML = XML(e.target.data.returnString); trace(myXML); outputs correctly: -- data project project_code![CDATA[1]]/project_code project_datum![CDATA[2011-07-19]]/project_datum project_naam![CDATA[project naam 1]]/project_naam

Re: [Flashcoders] Incorrect XML from PHP to Flash {RESOLVED}

2011-07-21 Thread Henrik Andersson
Cor skriver: Thank you. I have: var myXML:XML = XML(e.target.data.returnString); You should have XML(loader.data). Use the URLLoaderDataFormat.TEXT mode, not the URLLoaderDataFormat.VARIABLES mode. As for the ordering, did you request any specific order at any time in the chain? You did

Re: [Flashcoders] Re: Flashcoders Digest, Vol 46, Issue 12

2011-07-21 Thread misc_info
I was going to write a long email on reasons to avoid Zinc like the plague, but don't have time. Do some searches for negative reviews before plunking down your cash. If you do use them, go into it with your eyes wide open. Using MDM Zinc is one of the biggest mistakes our company ever