Is it possible to kill or stop a download when using network.download()?
We have a function that starts the download of a large video and want to allow the users to cancel out of downloading at any time.
We are using the listener to do something if the download finishes, but have found that if you suspend and resume the app, the downloaded file does not work but the listener still triggers as if it finished correctly. So I would like to allow the user to kill the download or program it to kill the download on app suspend.
network.download( url, method, listener [, params], destFilename [, baseDir] )
I need to be able to kill the download at any time and for it to stop downloading immediately.
Any suggestions? [import]uid: 7845 topic_id: 12596 reply_id: 312596[/import]