Flash: 6 inside 5?

Out of context: Reply #9

  • Started
  • Last post
  • 10 Responses
  • nevub0

    mbr,

    If you just copied and pasted that code I posted that won't work.
    You'll need to actually parse the SWF version.

    See the code below.

    ---

    function getMajorVersion() {
    var playerVersion = /:$version;
    var playerVersionArry = playerVersion.split(",");
    var majorVersionArry = playerVersionArry[0].split(" ");
    return(majorVersionArry[1]);
    }

    var majorVer = getMajorVersion();

    if (majorVer > 5) {
    loadMovie('video.swf');
    }
    else {
    loadMovie('upgrade.swf');
    }

    ---

    As for the Flash Player uninstall/re-install just download this beautiful little app.
    http://www.kewbee.de/FlashPlugin…

View thread