View Full Version : LzLoader? What is it?
kmeixner
05-12-2010, 03:01 PM
Hi,
I came across this strange line in my application today. I think it was written by an old coworker who hasn't worked here for a couple of years. I am wondering if anyone knows what this line does and what versions of OpenLaszlo support it:
LzLoader.prototype.timeout=30000; // Default is 30sec, perhaps move back sometime soon
Thanks,
Kevin
rajubitter
05-13-2010, 02:43 AM
Looks like a helper class for loading resources into movie clips.
http://svn.openlaszlo.org/openlaszlo/tags/3.4.1/WEB-INF/lps/lfc/data/LzLoader.as
rajubitter
05-13-2010, 02:49 AM
The HTTP loader class uses an instance of LzLoader to load resources, and that's one place where the timeout value is used:
LzHTTPLoader.prototype.setTimeout = function (timeout) {
this.timeout = timeout;
// [todo hqm 2006-07] Should we have an API method for setting LzLoader timeout?
this.lzloader.timeout = timeout;
}
senshi
05-13-2010, 01:13 PM
I am wondering if anyone knows what this line does and what versions of OpenLaszlo support it:
LzLoader is an internal class used in swf8 for loading media or data. If you need to change the default timeouts for media or data requests, you should use canvas.dataloadtimeout (http://www.openlaszlo.org/lps4/docs/reference/lz.canvas.html#LzCanvas.__ivars__.dataloadtimeout) or canvas.medialoadtimeout (http://www.openlaszlo.org/lps4/docs/reference/lz.canvas.html#LzCanvas.__ivars__.medialoadtimeout ).
kmeixner
05-13-2010, 03:28 PM
LzLoader is an internal class used in swf8 for loading media or data. If you need to change the default timeouts for media or data requests, you should use canvas.dataloadtimeout (http://www.openlaszlo.org/lps4/docs/reference/lz.canvas.html#LzCanvas.__ivars__.dataloadtimeout) or canvas.medialoadtimeout (http://www.openlaszlo.org/lps4/docs/reference/lz.canvas.html#LzCanvas.__ivars__.medialoadtimeout ).
Hi,
Thanks you Raju and Senshi for you response. I do use the dataloadtimeout and medialoadtimeout in my ported OpenLaszlo 4.7.2 application now. I will remove the line now that I know it is no longer needed.
Kevin
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.