[Extendflash] Differenciating between Flash 7 and flash 8
Keith Peters
kp at bit-101.com
Wed Sep 28 19:58:29 PDT 2005
what's wrong with fl.version?
_____
From: extendflash-bounces at flashguru.co.uk
[mailto:extendflash-bounces at flashguru.co.uk] On Behalf Of Lanny McNie
Sent: Wednesday, September 28, 2005 6:46 PM
To: extendflash at flashguru.co.uk
Subject: Re: [Extendflash] Differenciating between Flash 7 and flash 8
I often check the availability of a flash 8-only jsfl function
function is8() {
return (fl.browseForFolderURL == undefined);
}
Interesting side note: While testing this initially, I noticed that tracing
a built-in function returned some pseudo code, further investigation showed
that tracing a homemade JSFL method would actually trace out the function as
code.
On 9/28/05, Derek Vadneau <extendflash_again at thunderunderground.com
<mailto:extendflash_again at thunderunderground.com> > wrote:
The Flash IDEs use the authoring player regardless of the installed
browser player, so it is specific to the IDE.
var v:Array = System.capabilities.version.split(' ');
var vn:Array = v[1].split(',');
if (Number(vn[0]) == 7)
{
// Flash MX 2004
}
else
{
// Flash 8
}
Derek Vadneau
-----Original Message-----
From: extendflash-bounces at flashguru.co.uk
[mailto: <mailto:extendflash-bounces at flashguru.co.uk>
extendflash-bounces at flashguru.co.uk] On Behalf Of Ibis Fernandez
Sent: Wednesday, September 28, 2005 8:41 PM
To: extendflash at flashguru.co.uk
Subject: [Extendflash] Differenciating between Flash 7 and flash 8
Do to some of the changes between the JSFL for Flash 7 and that for Flash
8,
I'm having to do some updating on some of my extensions.
My question is, is there a function or method I can use so my extension
can
tell which version of flash it being used on, so that for example if the
user has flash 8 or greater that certain function will be available that
can
make use of the new code, while if the user is using flash 7 then they can
continue to use the same original functions?
_______________________________________________
Extendflash mailing list
Extendflash at flashguru.co.uk
http://lists.flashguru.co.uk/mailman/listinfo/extendflash
--
-------------------------
Lanny McNie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.flashguru.co.uk/pipermail/extendflash/attachments/20050928/4f0aab09/attachment.htm
More information about the Extendflash
mailing list