Thanks Gordon, we would expect the same but you never are able to get the
Word document. In reality, our application is making RemoteCalls. Last
night, I used a packet sniffer and I could see that the request started by
getURL is stopped when results start getting back from one of the Remote
Calls. Some bytes of the Word document make it to the client, but since the
document is not complete, Word does not open.





|---------+----------------------------->
|         |                             |
|         |  "Gordon Smith"             |
|         |  <[EMAIL PROTECTED]>        |
|         |  Sent by:                   |
|         |  [email protected] |
|         |  03/22/2006 12:59 AM        |
|         |  Please respond to          |
|         |  flexcoders                 |
|         |                             |
|---------+----------------------------->
  
>-----------------------------------------------------------------------------------------------------------------------------|
  |                                                                             
                                                |
  |      To: [email protected]                                         
                                                |
  |      cc:                                                                    
                                                |
  |      Subject:  RE: [flexcoders] getURL problem.                             
                                                |
  
>-----------------------------------------------------------------------------------------------------------------------------|




I'd expect the Word doc to start downloading after the nested loops
complete. Maybe counting to 10,000,000 is just taking longer than you
think?

- Gordon

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, March 21, 2006 8:23 PM
To: [email protected]
Subject: [flexcoders] getURL problem.

We are having some issues when calling getURL while other processes are
running ( components still being loaded, or RemoteCall returning data).
We
isolated the problem in the application below. Click on Test without
checking off the delay button, and a Word document is downloaded from
the
URL. Click again but now check off the delay button, and the Word
document
is never downloaded. It seems like the request is being aborted somehow.

Any ideas?

Thanks

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";>
<mx:Script>
<![CDATA[


 public function myInit()
 {


getURL("http://www.shaunakelly.com/word/sharing/test.doc
","_self");
                  if( delay.selected)
                  for (var i:Number=0; i < 10000; i++)
                  {
                        for ( var a:Number=0; a < 1000 ; a++)
                        {
                        }
                  }

 }

]]>
</mx:Script>

      <mx:Button label="Test" click="myInit()"/>
      <mx:CheckBox label="Delay"  id="delay"/>
</mx:Application>

------------------------------------------------------------------------
---
This e-mail message (including attachments, if any) is intended for the
use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt
from
disclosure.  If you are not the intended recipient, you are notified
that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
------------------------------------------------------------------------
---




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links











---------------------------------------------------------------------------
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---------------------------------------------------------------------------




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to