Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: flash5 scriptless plugin detection
From: Matt Wobensmith
Date: Tue, 29 Aug 2000 18:23:55 +0100

RE: scriptless player detection.

Now that we have the ActionScript $version variable, this can be used for
player version detection.

Here's a sample script. You can create it in Flash 4, *or* in Flash 5. Just
be sure to export the SWF as version 4.

Matt

---------------
Matt Wobensmith
Macromedia
Flash Community Manager


Flash 4 style:

Set Variable: "playerVersion" = eval("$version")
Set Variable: "playerVersion" = substring(playerVersion, 5, 1)
If (playerVersion = "5")
Comment: load Flash 5 content
Else
Comment: load Flash 4 content
End If


Flash 5 style:

playerVersion = eval("$version");
playerVersion = substring(playerVersion, 5, 1);
if (playerVersion == "5") {
// load Flash 5 content
} else {
// load Flash 4 content
}

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]