You don't need to load a SWF at all... if you're just looking for detection,
use the boolean produced by the SWFObject API (as mentioned by Bobby), then
use JavaScript to manipulate your DOM and write text to the page.

simaple example:

in the head, wrapped in a 'load' event
---------------
//choose whatever minimum version you want to support
var flashFound = swfobject.hasFlashPlayerVersion("5");

if(!flashFound){
  document.getElementById("flashwarning").innerHTML = "You don't have Flash
Player.";
}
---------------


in the body
---------------
<p id="flashwarning"></p>
---------------


of course, you could also create the 'flashwarning' DOM element dynamically
if you don't want extraneous markup cluttering your HTML.  :)

- philip


On Sun, Oct 5, 2008 at 6:21 AM, Getify Solutions, Inc. <[EMAIL PROTECTED]>wrote:

>
> Bobby's right about the SWFObject API being able to handle this.
>
> However, just in case you aren't wanting to write your own script,
> CheckPlayer (http://checkplayer.flensed.com/) is an add-on project script
> that wraps around SWFObject and does (among many other things) what you are
> asking for already.  Basically, you just instantiate it with the version
> you
> want to check, and it will callback to a function if the version-check
> passes or not.  Simple as that.
>
> --Kyle
>
> --------------------------------------------------
> From: "jeffshead" <[EMAIL PROTECTED]>
> Sent: Sunday, October 05, 2008 3:39 AM
> To: "SWFObject" <[email protected]>
> Subject: How to NOT display flash movie - Just use SWFObject as a detector
> for  a flashcopier script
>
> >
> > Can anyone tell me how to use SWFObject as a detector only?
> >
> > I am using a flashcopier JavaScript script to copy text from a text
> > box. Basically, the user just clicks in the text box and the text is
> > copied to their clipboard. I want to use SWFObject to simply display a
> > message to the user if their browser does not support Flash. If there
> > browser does support Flash, I do not want SWFObject to display
> > anything.
> >
> > In other words, I do not want the warning message to replace the text
> > box. I just want a warning displayed if the user's browser is not
> > Flash enabled. I want the text box to be visable at all times.
> >
> > Basically, I want to use it like one would use <noscript> tags with
> > JavaScript so a warning message can be displayed if the user's browser
> > does not support Flash.
> > >
> >
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to