That won't help figure out whether you are on Mac or Win, which I think
is what Pablo is trying to figure out.
I grepped the LFC for getVersion which is the Flash call which returns
Flash version as well as platform. Unfortunately, I don't think
platform is officially exposed. You can get it by calling:
LzBrowser.getVersion();
return LzBrowser._os;
It will be wither "WIN" or "MAC"
It's a little odd. I don't quite understand why the version of Flash is
in LzBrowser, and it would be nice if the "os" attribute were public. I
might expect to find it in "canvas" rather than in "LzBrowser"
Sarah
On Wed, May 16, 2007 at 3:23 PM, P T Withington wrote:
On 2007-05-16, at 18:04 EDT, Pablo Kang wrote:
I want to know what system my application is running under with OL
3.4. Is there a service or canvas attribute I can get this info from?
In 3.x you have the following canvas attributes:
// @field String build: build number of the LPS that generated
this application (for .lzo files,
// this is the build of the server that
generated the optimized file, not the
// one that served it).
// @field String lpsversion: version number of the LPS that
generated this application (for .lzo files,
// this is the version number of the server
that generated the optimized file, not the one
// that served it).
// @field String lpsrelease: release of the LPS that generated
this application (for .lzo files,
// this is the release of the server that
generated the optimized file, not the one that
// served it).
In 4.x this is consolidated in a canvas method:
/**
* Compute version info as a string
* @access public
*/
static function versionInfoString () {
return (
'URL: ' + LzBrowser.getLoadURL() + '\n' +
'Version: ' + canvas.lpsversion + '\n' +
'Release: ' + canvas.lpsrelease + '\n' +
'Build: ' + canvas.lpsbuild + '\n' +
'Date: ' + canvas.lpsbuilddate + '\n' +
'Target: ' + canvas.runtime + '\n' +
'Runtime:' + LzBrowser.getVersion() + '\n');
}