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:
  1. private function checkPlayerVersion():Boolean{
  2.     var iVersion:Number = Number(getVersion().split(' ')[1].split(',').join(""));
  3.     return ((iVersion)>= 90280);
  4. }

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 |

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.