Flasher Archive

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


Subject: FLASH: Simple Flash 4 detection
From: John Croteau
Date: Wed, 9 Jun 1999 03:08:42 +0100

Hi all,

We have added a new logo to Flash Central's Flash Tech Resource. It's
only on the front page (http://www.FlashCentral.com/tech/) a few other
pages so far, but will be on all the pages soon. It is not a spectacular
Logo but I bring it up to show a simple example of using Flash 3 and
Flash 4 together.

If you go to the Resource with a browser detectable by script and Flash
3 or later you will get Flash, however if your browser is undetectable
with script you will get a Gif version of the Logo. All that is standard
JavaScript detection.
If you are not sure if your browser is detectable with script check the
table at:
http://www.macromedia.com/support/flash/ts/documents/browser_detection_of_flash.htm

What is unique is that if you have the Flash 3 plugin/ActiveX control
then you will get traditional Flash anti-aliased text for Resources
(seen on Mouse Over).
But if you have the Flash 4 plugin/ActiveX Control you will get the new
Aliased (not Flash anti-aliased) text (for the word Resources) that uses
a standard sans-serif font that is installed on your computer.

The Flash 3/4 detection is done inside Flash and only one .swf file is
used.
I use 2 frames in a Movie Clip - one frame for the standard Anti-Aliased
text and the second for the Aliased text. I then have a Tell Target
directed to the second frame, but instead of using a standard literal
target name, I use an ActionScript expression which Flash 4 understands
but Flash 3 doesn't (this is a new check box in the Tell target action
settings).

Soon after Flash 4's release a more complete desciption and an FLA will
be available showing this technique.

----------- -----------------------
John Croteau croteauaterols [dot] com (mailto:croteauaterols [dot] com)
------------- -------------------------
FlashTek (Advanced Websites with Flash) http://www.FlashTek.com/
Flash Bible (Fast track to good Flash) http://www.FlashBible.com/
Flash Central(The Universe Starts Here) http://www.FlashCentral.com/
The Flash Tech Resource (Tech Notes) http://www.FlashCentral.com/tech/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com


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