Skip to content

Shockwave Flash Player version utility

License

Notifications You must be signed in to change notification settings

syranide/swf-player-version

Repository files navigation

SWFPlayerVersion

Shockwave Flash Player version utility. GCC ADVANCED optimizations compatible.

// Test if SWF Player version is supported and output the actual version.
if (SWFPlayerVersion.isSupported('10.0')) {
  alert('SWF Player ' + SWFPlayerVersion.get() + ' is installed');
}

API

get()
  returns {?string} '#.#.#' or null.

  Get available SWF Player version. Result is cached.
isSupported(requiredString)
  requiredString {string} '#.#.#', '#.#', '#' or ''.
  returns {boolean} true if supported.

  Determine if available SWF Player meets version requirement.

About

Shockwave Flash Player version utility

Resources

License

Stars

Watchers

Forks

Packages

No packages published