Flash 6 detect , tell user to upgrade etc

Flash 6 detect , tell user to upgrade etc.
Ive produced a swf in Flash 6 format. Is there a way that you can detect which player a user has installed in there machine, then tell them to goto Macromedia downloads to download the latest plugin?

Or is there a way to load a flash 5 movie which states they have to upgrade (so that there isnt a big white empty space on the site), then for it to load the flash 6swf file if the user already has the flash 6 plugin??

please help!!

tutorial on THIS site

http://www.kirupa.com/developer/mx/detection.asp

doh! cheers m8!

I am trying to get around using java script in the html of the site.

I found this script , is it possible to adapt this, see below?

‘This script will detect which version of the player a user is using and redirect to an appropriate page. This script checks for the first decent build of the v6 player build 29. Just change the anmes of the destination files and paste this script in the very first frame of your swf.’

version= getVersion(); space=version.indexOf" “); myString=version.substring(space+1,version.lemgth); myArray=myString.split(”,"); player= new Object(); player.platform=version.substring 0,space); player.majorVersion=parseInt(myArray[0]); player.minorVersion=parseInt(myArray[1]); player.buildNo=parseInt(myArray[2]); player.patchNo=parseInt(myArray[3]); if (player.majorVersion==6) && (player.buildNo >= 29){ getURL(“myversion6page.html”); }else{ getURL(“myotherpage.html”); }


How about having a plain flash 5 version SWF loading up first, in the same position in the html with this code in it:

version= getVersion(); space=version.indexOf" “); myString=version.substring(space+1,version.lemgth); myArray=myString.split(”,"); player= new Object(); player.platform=version.substring 0,space); player.majorVersion=parseInt(myArray[0]); player.minorVersion=parseInt(myArray[1]); player.buildNo=parseInt(myArray[2]); player.patchNo=parseInt(myArray[3]); if (player.majorVersion==6) && (player.buildNo >= 29)

And instead of having this :

{ getURL(“myversion6page.html”); }else{ getURL(“myotherpage.html”); }

could the Flash 5 file do either the following depending on which flash player is detected:

  1. Have the Flash 5 swf display the text ‘You need to update your Flash player’ and open up the macromedia download page in a new window.

  2. If the Flash 6 player is detected, have it load the Flash 6 that was originally intended to be in that place of the html.

Would appreciate it if you could help

Thanks