# Flash MX detection

**URL:** <https://forum.kirupa.com/t/flash-mx-detection/10905>\
**Category:** flash\
**Created:** [January 9, 2003, 4:57am UTC](https://forum.kirupa.com/t/flash-mx-detection/10905 "2003-01-09T04:57:39Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![wrangler](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wrangler](https://forum.kirupa.com/u/wrangler)\
**Post date:** [January 9, 2003, 4:57am UTC](https://forum.kirupa.com/t/flash-mx-detection/10905/1 "2003-01-09T04:57:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 9, 2003, 5:48am UTC](https://forum.kirupa.com/t/flash-mx-detection/10905/2 "2003-01-09T05:48:25Z")

</div>

you can get the os through this line of code:

```auto
System.capabilities.os

```

as for the flash player detection there’s a tutorial here at kirupa:  
[http://www.kirupa.com/developer/mx/detection.asp](http://www.kirupa.com/developer/mx/detection.asp)

by the way … i’m running windows xp, ie6 sp1 and flash player 6.0.65.0  
no problems so far

also note that the script to detect the os only works in flash 6 so … :crazy:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 9, 2003, 6:29am UTC](https://forum.kirupa.com/t/flash-mx-detection/10905/3 "2003-01-09T06:29:42Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 9, 2003, 6:32am UTC](https://forum.kirupa.com/t/flash-mx-detection/10905/4 "2003-01-09T06:32:38Z")

</div>

ARGH!!! exactly… my clients have been receiving white boxes where flash movies should be 😱

Hmm… thanx for the advice guys…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 9, 2003, 6:38am UTC](https://forum.kirupa.com/t/flash-mx-detection/10905/5 "2003-01-09T06:38:12Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 9, 2003, 6:58am UTC](https://forum.kirupa.com/t/flash-mx-detection/10905/6 "2003-01-09T06:58:24Z")

</div>

```auto
version = getVersion()
flashVer = version.split(" ")
if (flashVer[1].charAt(0)-0 >= 6) {
	// do whatever
} else {
	getURL("myPage.html", "_self")
}

```

the script only works with flash 5 and later :sleep:

that’s why i’d better use javascript 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 9, 2003, 7:34am UTC](https://forum.kirupa.com/t/flash-mx-detection/10905/7 "2003-01-09T07:34:34Z")

</div>

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.”

```php

<!-- 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” ).

Glad to help:sure:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 9, 2003, 12:17pm UTC](https://forum.kirupa.com/t/flash-mx-detection/10905/8 "2003-01-09T12:17:43Z")

</div>

theres a really good flash detecton on [http://www.moock.org](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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 9, 2003, 2:34pm UTC](https://forum.kirupa.com/t/flash-mx-detection/10905/9 "2003-01-09T14:34:50Z")

</div>

Macromedia also offers a “Flash Detection Kit” to download…free…Moocks is very good.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 9, 2003, 6:22pm UTC](https://forum.kirupa.com/t/flash-mx-detection/10905/10 "2003-01-09T18:22:56Z")

</div>

ill have to check that out didnt know macromedia did 1

-Tom

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 10, 2003, 3:56am UTC](https://forum.kirupa.com/t/flash-mx-detection/10905/11 "2003-01-10T03:56:36Z")

</div>

Thanks heaps for the great advice guys…

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.

# =============================

Its okay guys… i got it to work now 🙂

cheers, :beam:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 10, 2003, 4:28am UTC](https://forum.kirupa.com/t/flash-mx-detection/10905/12 "2003-01-10T04:28:02Z")

</div>

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.
