Dave Cragg dave.cragg at
Thu Jul 12 07:25:44 EDT 2007

On 12 Jul 2007, at 04:41, Stephen Barncard wrote:
> I guess it's probably best to quit on a file boundary (the movies  
> are <5mb), rather than in the middle of a file.

If you want to quit during a download, there are probably two ways.

Use "load url" and put the data into the local file in the callback  
handler. Then you can use "unload url" to stop the download at any time.

The second way is not officially supported, but for "blocking" calls  
such as "get url", you can call an internal libUrl handler like this:

     ulCancelRequest <url>

However, there's no guarantee this will exist in future versions of  
libUrl or have the same name.

libUrlResetAll is a bit brutal. In addition to closing all sockets,  
as Chipp mentioned, it will destroy any cached urls previously loaded  
with "load url".


More information about the Use-livecode mailing list