Um. Well, in that case, here is a quick and dirty way of doing it.
<script type="text/javascript">
function swfobjectVersionTest()
{
if (typeof deconcept == 'object')
return 1;
else if (typeof swfobject == 'object' )
return 2;
return 0;
}
var v = swfobjectVersionTest();
alert(v);
</script>
Bobby / Geoff - Is there a better way since there is no standard swfobject
version getter() method ?
Aran
-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of elduderino
Sent: Wednesday, 21 January 2009 8:14 PM
To: SWFObject
Subject: Re: which version of swf object is being used
HI Aran,
Thanks for the reply. I actually need to do this programmatically as
the code runs. I want a custom function that says if the swfobject
versiion is 1.5 then do this...if it's 2.0 then do this.
On Jan 20, 11:15 pm, "Aran Rhee" <[email protected]> wrote:
> You can look at the source of the swfobject.js file. It should have a
> comment as to what version it is.
>
> If you want to see what version someone is using on a page you can have a
> look at the methods they are calling in the HTML.
>
> SWFObject 1.x notation looks like:
>
> var so = new SWFObject("movie.swf", "mymovie", "400", "200", "8",
> "#336699");
> so.write("flashcontent");
>
> There is no new SWFObject() type object construction in 2.x
>
> Aran
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
>
> Behalf Of elduderino
> Sent: Wednesday, 21 January 2009 2:39 AM
> To: SWFObject
> Subject: which version of swf object is being used
>
> Is there any way to tell which version of swfobject is being used?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---