just wonderign whast’s the preferred/easier method:
1 add the player detection code into flash
2 use html editor (like dreamweaver) to insert some javascript on the webpage
just wonderign whast’s the preferred/easier method:
1 add the player detection code into flash
2 use html editor (like dreamweaver) to insert some javascript on the webpage
These links should help you probably in making a decision:
http://www.macromedia.com/support/flash_remoting/ts/documents/fr_minor_version_check.htm
I prefer the Javascript method.
Adding it in Flash definitely does not help if the viewer doesn’t have that version of the Flash player, since they movie can’t be displayed unless it has the plugin. So the only result you could possibly get from that is a positive.
At least I think that is how it works.
If you do it in Javascript you are pretty much assured that the method will work, unless the viewer has javascript turned off on their browser, but nowadays, that would be a very stupid thing to do.
nice one, i’ll go for the js option
and cheers for the links too!
i found the macromedia tut a litle hard to follow (it’s friday) so i set about finding an easier method - this worked great for me:
i downloaded the flash deployment kit:
http://www.macromedia.com/software/flash/download/deployment_kit/
in it, there is a directory with a dreamweaver behaviour inside it
add the behaviour to dreamweaver using the extensions manager
the behaviour creates the script for you via a very simple GUI, and loads 2 files which the script calls (a JScript file and a swf) into the directory where your html page with the detect script lives
and that’s it. all you need to do in the GUI is add the path to the file with the flash content (if the script detects the flash plugin AND the right player, it will redirect the visitor to the flash site, else it will auto-download the latest player
hope that helps somebody else out
:: Copyright KIRUPA 2024 //--