PDA

View Full Version : Flash Detection Scripts not working on a MAC


mcmcom
04-12-2007, 09:36 PM
hi all,

i am using the Js provided by the Macromedia Flash Detection Kit to do client side flash detection. I am detecting for FP6 so i can't use the new integrated flash 8 detection features provided in flash.

Anyways i wrote some client side js to evaluate if flash exists, if it does it writes the object tag in js (solving the MS ActiveX problem at the same time) if not it writes a simple image tag with a backup image in it.

this works perfectly on PC's across ALL browsers, but does not work at all in a MAC (in either FF or Safari) Im wondering if anyone had any ideas.

Basically on the MAC i keep getting a message popping up that says

exact error msg:
The page "mypage" attempted to load an internet plug-in named "Shockwave Flash", but the plug-in failed to load successfully.


its Mac OSX 10 and it DOES work when flash is installed. However when its not installed its like the JS isn't even firing

any thoughts?

TIA,
mcm

mcmcom
04-13-2007, 04:17 PM
one more thing. The error message comes up only in Safari. In FireFox no error message comes up but again the image tag does not write itself out.

Also with flash installed it writes out the flash tags, but without it it does not write out the image tag, it doesn't even seem to parse the <script> tags or the function inside them.

TIA,
mcm

mcmcom
04-13-2007, 06:51 PM
ok i solved the problem.

it actually is nothing to do with the script. THe scripts from MM work fine its just that the MAC i tested it on did have remanants of the flash player left on it. Since the script only checks for an API description and version name that was left behind by the installer. So my script thought flash was installed on a MAC because there were physical traces to the Flash player on the MAC.

hth someone
mcm