actionscript 3 - Flash Contact Form; Trouble Returning Server Response -


I have a contact form that connects to my site's back-end, the form presents just fine But I do not have server response It's always 'undefined'. I'm worried that this could happen, but I was hoping that one of the smartest people could help me find a workaround or if it (Note: most likely), if you do not They can tell what is going wrong.

  // ====================================== ==================== Public Function Openform (): Nil {// ==================== ================================================== ================URL URL loader = new URL loader (); Var newFile: FileReference = New FileReference (); Var Request: URLRequest = New URLRequest (urlString); If (form1.planby.visible & form1.planby.upload.selected) {newFile.addEventListener (HTTPStatusEvent.HTTP_STATUS, response status); NewFile.upload (Request, "Attach [attachment]", Incorrect); } Other {sendForm.addEventListener (HTTPStatusEvent.HTTP_STATUS, response status); SendForm.load (request); }} // ============================================== ============ Function Response Location (E: HTTPStatusEvent): Zero {// ========================== ================================ E. STATUS == "According to Debugger" if (E.Stats = = 200) {Open page ("Success"); } Else {openPage ("Error"); }}  

Obtaining the status code of the HTTP call in my experience is just plain unbelievable when Unless you are deploying in the air.

Keeping this in mind, you can usually get better that the server should confirm some simple text that everything works just fine - if you do not get the text back then go back to your Error mode.

Yes, this is a pain in the butt and everyone in the community is desperately hoping that Adobe has corrected this problem soon.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -