Toby said:
It's unlikely that you need such a script. Just do something like:
<object data="flashcontent" type="application/x-shockwave-flash"
height="240" width="320">
<p><abbr title="Hypertext Markup Language">HTML</abbr> content.</p>
</object>
Well that doesn't quite work. If the visitor has Flash but the wrong
version it will load yet it will not work. Flash is backwards
compatible with compatible features. For example if you use the tree
component from flash mx2004, and your user has Flash mx installed,
everything BUT the tree component works.
This is why that non-embed code for flash that pops up here every now
and then (allspice or something?) doesn't cut it. I believe they even
discuss that as one of the issues with their solution on their web page.
Now one can, in their flash movie, check the users version and let them
know they have the wrong version. I believe Macromedia uses that method
on their site and suggests others do too. I believe they compile a flash
movie for flash 2, then check the player version to see if it the
version they need to run the "real" movie.
As a side note, Flash is best used on website where people EXPECT flash.
(kids sites, intranet, movie sites, web applications, game sites,
entertainment sites, etc...) places where people go to have fun or play
games, or want more than text and images. It is NOT for most other
sites (especially if the site is dependent on Flash.)