As the title of the thread implies, I’m having some trouble with closing an open stream on an image_loader.
I’ve got a navigation class which instantiates instances of a portfolio class. When I click on on another project I want to close any image_loaders that are currently downloading a jpg. The following demonstrates how i’m trying to close the stream…
image_loader.close();
Should work right? For some reason it doesn’t. If I test locally it throws the following error:
Error: Error #2029: This URLStream object does not have a stream opened.
I’ve tried testing it live and I get this in the activity monitor:
Error WebKitErrorDomain
I feel like this should be pretty easy. What am I missing? I’ve looked for a long time trying to find documentation on this seemingly simple problem. Any help someone can offer would be greatly appreciated. Thanks in advance.