Simple flash player version check
March 13th, 2007 by
Jaap Kooiker
I had some people saying "You can't have full screen when the player version is lower than 9.0.28.0, how do you intend to handle that".
The answer is simple, I just check the flash player version. The only thing I want to know is the player version and there are a few ways to get the version number. One I came up with is this:
Actionscript:
-
private function checkPlayerVersion():Boolean{
-
var iVersion:Number = Number(getVersion().split(' ')[1].split(',').join(""));
-
return ((iVersion)>= 90280);
-
}
There you go, just check and see if the right version is present, otherwise do something else like a layer with a video above the flashobject (and HTML).
Jaap Kooiker
Posted in Actionscript 2.0, Flash 8 |