3 Replies Latest reply on Mar 6, 2011 7:11 AM by kglad

    Event.COMPLETE Not Working Properly



      I have confirmed to my satisfaction that the following code never triggers the Event.COMPLETE of var loader:


                      var loader:URLLoader = new URLLoader();
                      var req:URLRequest = new URLRequest(contact_url);
                      var variables:URLVariables = new URLVariables();
                      loader.dataFormat = URLLoaderDataFormat.VARIABLES;
                      req.method = URLRequestMethod.POST;
                      variables.senderFirstName = fn;
                      variables.senderLastName = ln;
                      variables.senderEmail = e;
                      variables.senderAddr = a;
                      variables.senderAddr2 = aa;
                      variables.senderCity = c;
                      variables.senderState = s;
                      variables.senderCountry = u;
                      variables.senderZip = zp;
                      variables.senderPhone = p;
                      variables.senderFax = f;
                      variables.senderMessage = m;
                      req.data = variables;
                      loader.addEventListener(Event.COMPLETE, onSendComplete);


      However, it does in fact send the emails it is designed to send! Why doesn't it complete when in fact the work is done?