|
May 11, 2001 Checking for Flash on Win IE Tips: May 2001
Yehuda Shiran, Ph.D.
|
|
In some of your applications you may need to use Flash Audio and JavaScript directly, without any prepackaged APIs such as FlashSound JavaScript API. You will enjoy more features, methods, and properties, but you'll have to take care of all the tiny details that are taken for granted when using FlashSound API. One of these tiny details is checking that the Flash player is installed. On a Win Internet Explorer system, Flash is implemented by an ActiveX control. The easiest way to check for Flash on such a system is by VBScript. Here is the code:
And here is the conditional version of the same script. It checks first that the browser is supported, as well as that the system is WIN IE. Only then it writes our the VBScript to check that the player is installed and its version is supported. Here is the code:
People who read this tip also read these tips: Look for similar tips by subject: |