\n'); } /********************************************************************* * the following script is based on: * Macromedia Flash Dispatcher -- a scriptable detector for Flash Player * copyright (c) 2000 Macromedia, Inc. ********************************************************************* * * MM_FlashInfo() -- construct an object representing Flash Player status * * Constructor: * * new MM_FlashInfo() * * Properties: * * installed true if player is installed * (undefined if undetectable) * * implementation the form the player takes in this * browser: "ActiveX control" or "Plug-in" * * version player version if installed * * revision revision if implementation is "Plug-in" * * * Description: * * MM_FlashInfo() instantiates an object that contains as much * information about Flash Player--whether it is installed, what * version is installed, and so one--as is possible to collect. * * Where Flash Player is implemented as a plug-in and the user's * browser supports plug-in detection, all properties are defined; * this includes Netscape on all platforms and Microsoft Internet * Explorer 5 on the Macintosh. Where Flash Player is implemented * as an ActiveX control (MSIE on Windows), all properties except * 'revision' are defined. * */ var MM_FlashControlInstalled; // is the Flash ActiveX control installed? var MM_FlashControlVersion; // ActiveX control version if installed function MM_FlashInfo() { if (navigator.plugins && navigator.plugins.length > 0) { this.implementation = "Plug-in"; // Check whether the plug-in is installed: if (navigator.plugins["Shockwave Flash"]) { this.installed = true; // Get the plug-in version and revision: var words = navigator.plugins["Shockwave Flash"].description.split(" "); for (var i = 0; i < words.length; ++i) { if (isNaN(parseInt(words[i]))) continue; this.version = words[i]; this.revision = parseInt(words[i + 1].substring(1)); } } else { this.installed = false; } } else if (MM_FlashControlInstalled != null) { this.implementation = "ActiveX control"; this.installed = MM_FlashControlInstalled; this.version = MM_FlashControlVersion; } } function check_Flash6() { var player = new MM_FlashInfo(); return player.installed == true && player.version >= 5; } function check_VibeTonz() { try { new ActiveXObject("ImmVibeAx.ImmVibe") } catch(e) { return false; } return true; } hasFlash6 = check_Flash6(); hasVibeTonz = check_VibeTonz();
Immersion VibeTonz® Demo ShowcaseUse with Immersion VibeTonz® USB Demonstration Handset | ||||
Immersion VibeTonz® Demo Showcase: The Flash demo emphasizes the benefits of haptics within the mobile phone industry, offering a context for touch sensations that a user may feel on their mobile handset. | ||||