Now a days, flash contact form are very much available. The UI,captcha etc are made are made in flash, validation can also be done using actionscript without any help of javascript and then upon a submit button click, flash submits the data to a server file(like php). I was doing exacltly same thing. Then I fell in a problem with flash - php communication. To send data from flash to php we, usually use
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
where loader is an instance of URLLoader Class. Sometimes it works, sometimes not. SO, many developers got confused.
In some cases, one problem occurs(That I faced), when php sends back the response to flash(as an acknowledgment whether data was submitted successfully or not), it encode the data in variables format, some of them, flash/actionscript can't understand. So, its better to use URLLoaderDataFormat.text than the above to make the communication bug free. This is usually helpfull only when you are communicate from flash to php and most of the times, we need communication in this direction.
Subscribe to:
Post Comments (Atom)










0 comments:
Post a Comment