PDA

View Full Version : detecting flash version


Stones
05-14-2001, 08:17 AM
I'm trying to get my flash movie to detect wether the user has the latest version of flashplayer.
This is my script:

version = getVersion();
flash_ver = version.split(",");
ver = flash_ver[2];
if (ver > 42) {
gotoAndPlay ("Scene 1", 1);
} else {
gotoAndPlay (2);
}
stop ();

I have downloaded the latest version of flashplayer on to my browser and yet I keep going to frame 2 instead of Scene1
,frame 1.

Is the number that I'm giving as the version No, incorrect.

thanks for your help

seventhmonkey
05-14-2001, 09:05 AM
try using if (ver >= 42) { instead.

If the latest version is only 42, as you said in your other post, than it won't be picked up by the code..

:)