The MacroMedia site says you can do this, but how is the question.
How do detect if the browser has the Flash Player loaded/installed, so I can redirect the unfortunate that dont as nessesary.
Type -> TechNote 4150 in the search box (lower left), and hit GO!
The first item (100%) in the search results will be: Flash OBJECT and EMBED Tag Syntax
Hit that link and you will see the following:
Flash OBJECT and EMBED Tag Syntax
Product: Flash
Platform: All
Versions: 5.0 and above
ID: 4150
Introduction
An HTML page is required to correctly display a Flash movie in a browser. This HTML page must contain tags that reference the actual Flash movie file to be opened and played. These tags are the OBJECT and EMBED tags. The OBJECT tag is used by Internet Explorer on Windows and the EMBED is used by Netscape Navigator (Macintosh and Windows) and Internet Explorer (Macintosh) to direct the browser to load the Flash Player. Internet Explorer on Windows uses an ActiveX control to play Flash content while all other browser and platform combinations use the Netscape plugin technology to play Flash content. This explains the need for two tags.
Note: hand coding HTML pages with OBJECT and EMBED tags is not necessary when using Flash 4 or later. The Publish feature present in those versions of Flash will automatically create an HTML document that contains the required HTML tags for browsers to access a Flash movie on the web. There are also several different HTML publishing templates to choose from. To use the Publish feature choose File > Publish Settings. For more information on using the feature see the Using Flash manual or online help.
...
Adding <OBJECT> and <EMBED> tags manually
It's simple to create the tags required to display a Flash movie in a browser.
To add OBJECT and EMBED tags manually: 1 Copy the HTML code below and paste it into your HTML.
<OBJECT CLASSID="clsid27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="100"
HEIGHT="100" CODEBASE="
Change the HEIGHT and WIDTH parameters to match the height and width of the movie dimensions or use percentage values, if desired.
Change "moviename.swf" where it appears in the OBJECT and EMBED tags to the name of movie to be played.
Why use these all these HTML tags? What do they do?
The OBJECT tag is for Internet Explorer 3.0 or later on Windows 9x/2000/NT platforms or any browser that supports the use of the Flash ActiveX control. The "classid" must appear exactly as it does in this example. The "codebase" attribute must also appear exactly as it does in this example; it tells the browser where to find Flash Player for automatic download. Internet Explorer 3.0 or later on Windows 9x/2000/NT will prompt the user with a dialog asking if they would like to auto-install the Flash Player if it's not already installed. This process can occur without the user having to restart the browser.
The EMBED tag is for Netscape Navigator 2.0 or later, or browsers that support the use of the Netscape-compatible plugin version of Flash Player. The "pluginspage" attribute tells the browser where to direct the user to find Flash Player for download if the Player is not already installed. The user would then need to download and run the installer and restart their browser.
...
This code is the minimum required HTML to provide Flash Player content in your web pages. There are other attributes that you can use in your OBJECT and EMBED tags to help control your movie. To learn more about these review Flash OBJECT and EMBED tag attributes (TechNote 12701).
In other words, if you use PUBLISH (in Flash) to create the necessary html to embed your movie, the user that doesn't have Flash installed, will automatically be redirected, if he so wishes, to the download site.
If you're creating the html yourself, you should include what I've highlighted in red in the above, as Macromedia points out!
Or you can use flash to detect flash:
Make a tiny movie, and in the first frame, put in a redirection to the page which contains your actual movie, and add a meta refresh to the html page containing this tiny movie and set it to 5 seconds to redirect to another page telling the user they don't have flash.
When someone with flash goes to the tiny movie page, the movie will load and redirect them to the flash site. When someone without flash goes to the page, the flash movie can't load, so it does nothing, but the meta refresh tag will redirect them to a page telling them they need flash and how to get it.
I noticed the VB example above...and I currently have the 'typical' Flash code in my html pages, but is there a way in javascript to do the following:
javascript code to detect Flash
if found:
display menubar.swf (using the code with object and embec)
else:
javascript code for javascript menubar
end code
On some pages I have a javascript menubar that I use. I'd like to move to a Flash menu bar that I started using a little while back. I'm not a programmer so I don't know how to write the if/then detect script. Any help you can give would be greatly appreciated.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.