Although it is poorly documented, the official function to call to abort a setSource is unload().

Note that because of a bug/design error this call will actually only work right if the you have made no intervening requests to the loader.  In other words, for unload to cancel the loading of a image you must not have made any subsequent calls to setSource.

Someday I hope to make some significant improvements to this area of the code.  In the meantime, if you're depending heavily on this area, I suggest you get very familiar with LzMakeLoad.as, LzMediaLoader.as, and LzLoader.as.

-Jason


Scott Evans wrote:
I thought that was supposed to work.  What's the warning?  
    

ERROR: bad url: can't form uri from null 



  
As an alternative, how about:

v1.setSource("http://blah/1x1.jpg");
    

good idea -- but that doesn't seem to work.  Looks like the resource 
completes loading.  I had some examples in Fiddler that seemed to halt the 
http connection, but now that's not happening.  Huh.

I just realized, an even better idea would be to do setResource("small")
to some compiled-in resource.  But that doesn't kill the connection 
either.  Bummer.



gse

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user
  

-- 
Jason Stafford
Principal Developer
Inspiration Software, Inc.
The leader in visual thinking & learning

InspireData(tm), the newest innovative thinking and learning tool from
Inspiration Software(r), extends the proven power of visual learning to
data analysis. Learn more at www.inspiration.com. 

503-297-3004 Extension 119
503-297-4676 (Fax)
9400 SW Beaverton-Hillsdale Highway
Suite 300
Beaverton, OR 97005-3300
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to