Skip to main content
Inspiring
August 11, 2010
Question

Current Flash player upgrade and detection script

  • August 11, 2010
  • 1 reply
  • 2438 views

I am stuck on a seemingly simple problem. Some of my flash buttons do not work in FlashPlayer 10 but work in 10.1 So I wanted to alert a user to upgrade to the most current flash player 10.1 if he/she has 10 and visits my website.

What is the best way to do it? My entire site is done in Flash and I am using AS3.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
August 11, 2010

you can check the flash player version with actionscript or in your html.

nikolaigAuthor
Inspiring
August 12, 2010

Could you possibly direct me to where to find a code for AS3 or perhaps provide it?

Does it matter on which frame the code has to be inserted and in what area in AS3?

My entire site is in Flash and HTML is only one "index" page.

kglad
Community Expert
Community Expert
August 12, 2010

you can use:

Capabilities.playerType

which is handy for checking for flashlite (like on mobile devices)

and

Capabilities.version

to detect player version

you can use those anywhere but i've always use those so they're the first thing done in the swf and then used to redirect to content appropriate for the player.

you might also find it useful to check for screen size.  i do this when redirecting for mobile devices that might have a screen of 320x240 or smaller:

Capabilities.screenResolutionX

Capabilities.screenResolutionY

in fact, the capabilities class has quite a few interesting properties that may be useful for you to check.