[Extendflash] Differenciating between Flash 7 and flash 8

Lanny McNie lanny.mcnie at gmail.com
Wed Sep 28 20:46:10 PDT 2005


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> 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: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/de5cdc1c/attachment.htm


More information about the Extendflash mailing list