Ive created some flash movies using Flash 6.0/MX …
Problem im having is a friend of mine is using Windows XP running IE.6 and when he views my web page he gets white boxes where the flash movies should appear… I was wondering if its possible to add some detection so it prompts users in a XP / IE6 environment that they need to download the latest version of flash.
Can anyone help me out… thanking you in advanced
I need something that will detect Flash 6/MX is needed for most browsers.
kax has a great answer to this. However I wish I had something that would redirect ONLY if was not version 6 right in actionscript something like:
(psuedocode)
if (version<6){
getURL…so and so
}
There is so much great stuff that only works with mx that lesser versions leave only a white box!
Kinda scares me, reminds me of the deadly grey java box!
I’m there with you wrangler, I have the same problem. I am sure there is an answer for this. I have been playing with the getVersion function and I am convinced that it will be part of the answer.
The following code will work on all browsers that understand either JavaScript or ActiveX. If the browser supports the MIME Type application/futuresplash, the script writes out an EMBED tag; otherwise, it writes an IMG tag. The OBJECT tag is invoked on any browser that supports ActiveX, regardless of which tag the JavaScript writes. The lines starting with “//” are comments, as are the lines enclosed in " < !-- --> " The browser ignores the former as “not part of the JavaScript to be executed,” and the latter as “not part of the HTML to be displayed.”
<!-- begin the OBJECT tag, which will be understood by ActiveX-capable browsers -->
<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
CODEBASE="http://active.macromedia.com/flash/cabs/swflash.cab#version=3,0,0,11"
WIDTH="220" HEIGHT="110" NAME="sw" ID="sw">
<PARAM NAME="Movie" VALUE="flash_movie.spl">
<PARAM NAME="quality" VALUE="high">
<PARAM NAME="Loop" VALUE="true">
<PARAM NAME="play" VALUE="true">
<!-- begin the JavaScript -->
<SCRIPT LANGUAGE="JavaScript">
<!-hiding contents from old browsers
//If this browser understands the mimeTypes property and recognizes the MIME Type
//"application/x-shockwave-flash"...
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]){
//...write out the following <EMBED> tag into the document.
document.write('<EMBED SRC="flash_movie.spl" WIDTH="220" HEIGHT="110" LOOP="true" QUALITY="high">');
}
//Otherwise,...
else {
//...write out the following <IMG> tag into the document. The image need
//not be the same size as the Flash Player movie, but it may help you lay out the
//page if you can predict the size of the object reliably.
document.write('<IMG SRC="welcome.gif" WIDTH="220" HEIGHT="110" ALT="Non-Shockwave Welcome">');
}
//Done hiding from old browsers. -->
</SCRIPT>
<!-- Close the OBJECT tag. -->
</OBJECT>
Make sure there are no line breaks in your EMBED or IMG tags, or the script will fail. If you’d like to use line breaks, put each line in a separate document.write() . Notice that the entire EMBED and IMG strings are enclosed in single quotes; this allows for double quotes to be inside the strings without breaking them. If you want to put an apostrophe in your string (as in ALT=“Your browser doesn’t support Flash Player” ), you’ll need to escape it with a backslash so that it doesn’t close the string prematurely ( ALT=“Your browser doesn’t support Flash Player” ).
theres a really good flash detecton on http://www.moock.org its really cool just change the script so it detects flash player 6 or which ever u are using and ur away
However what I really need is a detection script that recognises that a browser such as Netscape 4.79 & 7.0 with Flash 5.0 installed picks this up and redirects the user to the f lash 6.0 download. Instead of displaying a white box where the flash should be.
All of this information is wonderful and I really thank you all, this is a great site and a wonderful resource for flash mx,
I really wish I had been more involved earlier.
however…
I have access to many computers and we just did an upgrade on all our computers to xp, flash 5 works fine…no problem. We then went through and downloaded flash six and it successfully goes through but still reverted to flash 5 and again “white boxes”. I know what you are thinking and yes, some of the computers had administator only to adjust settings and that did fix some, but not all. I am sure we are just missing something stupid. What was interesting was that I did not start this string, so we aren’t the only ones with this problem.