title: Streamed PNG using URLStream intermittent when server is bogged
body: <p>So I used the regular loader class to load my images however the .close function is apparently broke in that class and it will not stop the download if it is called.</p>
  
  <p>In my case I need to be able to cancel loading as the user could possibly be scrolling through alot of images and the if not canceled it can take a few minutes to catch up to the scroll position.</p>
  
  <p>So after research the URLStream class seems to cure this problem and I found a good streaming class <a href="http://www.duzengqiang.com/blog/post/461.html" rel="nofollow">here</a></p>
  
  <p>This class works very nice except when there is heavy load on the server causing lag.<br/>
  When this lag happens the class will dispatch the complete event yet the image will not show.<br/>
  Watching the download with HTTPFox shows the image in fact does get loaded.</p>
  
  <p>I assume there is some kind of delayed issue with the URLStream class and the author of this class tried to correct it using the setTimeout method. 
  I also tried delaying the dispatching of the complete event using a timer and not dispatching until <code>if( this.width != 0 )</code> was detected and this seemed to work much better.
  But it is still haunting me just not as often.</p>
  
  <p>Does anyone know of a fix for this or another solution for streaming PNGs and JPGs?</p>