Loader.close(), a slippery little basted!
Posted on June 23, 2008
Filed Under AS3, Flash Tips |
I was working with the Loader class and thought that a good practice to avoid a lot of unnecessary bandwidth loadings is to clear any loading progress before I start a new one.
The method to use in the Loader class is the close() function. And the BIG problem in this is that when I tried in the flash ide the loader didn’t stop the stream… I tried everything… cleared every event listener, but in the flash “bandwidth profiler” I could see that the swf where still loading… so when I clicked at the navigation buttons as a maniac the “bandwidth profiler” showed me a bunch of loading swf simultaneously. After a lot of tryes end error I found out the the only problem is the falsh ide and the “bandwidth profiler”. If I do the same on a web server the connection cuts of the I get a sweet “Client closed connection before receiving entire response”. So much headache for nothing…
Thank god for Charels! The best debugging tool ever! if you don’t got it, go and get it here»!