The Flash Player I have installed on my system has the version number
"MAC 10,3,181,34". That's the value of
flash.system.Capabilities.version.
LzBrowserKernel.getVersion() returns '10.181', which means the minor
version is not returned. The code to parse the version information is:
/**
* Returns version information about the browser
*/
static function getVersion () :String {
if (!LzBrowserKernel._ver) {
var o:Array = Capabilities.version.split(' ');
LzBrowserKernel._os = o[0];
o = o[1].split(',');
LzBrowserKernel._ver = String(Number(o[0] + '.' + o[2]));
}
return LzBrowserKernel._ver;
}
When assembling the version number, the send item of the array "o" is
not added to the string.
LzBrowserKernel._ver = String(Number(o[0] + '.' + o[2]));
Instead you should do:
/**
* Returns version information about the browser
*/
static function getVersion () :String {
if (!LzBrowserKernel._ver) {
var o:Array = Capabilities.version.split(' ');
LzBrowserKernel._os = o[0];
LzBrowserKernel._ver = o[1].replace( new RegExp(",", "g"), ".");
}
return LzBrowserKernel._ver;
}