Flasher Archive

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


Subject: RE: FLASH: Platform sniffer won't Tell Target
From: George Medve
Date: Thu, 2 Nov 2000 15:44:42 GMT

I solved my earlier troubles.


I have attached the files:

the "=" should have been and "eq"

Again, Thanks


George





-----Original Message-----
From: George Medve [george [dot] medveatpres [dot] co [dot] uk (mailto:george [dot] medveatpres [dot] co [dot] uk)]
Sent: 02 November 2000 11:45
To: 'flasheratchinwag [dot] com'
Subject: FLASH: Platform sniffer won't Tell Target
Importance: High




I have created a version "sniffer".

I had a problem which was that "$version" is not supported in early versions
on the F4 player, in my case the one that was supplied with F4 and used in
the Test Movie mode.

As soon as I dropped the SWF into my browser with a later F4 player it
worked fine.

But I have tried to take it a step further and get it to "sniff" what
platform it is running on, which in theory should be quite simple, since
when the flash version is "sniffed" it also senses wheter is is Mac or
Windows, now what I have asked it to do is seperated out the first letter of
the version result, which would be either a M or a W, then depending on this
result to tell a movie clip to play either a Apple logo or Windows logo.
This sounds fair enough, but I believe that there is a flaw in the Flash
player as it won't work.



But for some reason the tell target will not work, I am testing on both PC
and Mac, it definately does not work.

I have even tried to build the script in both F4 and F5, but it is still no
good.

Help!



The code in F4 script:


Set Variable: "playerVersion" = eval ("$version")
If (Substring(playerVersion,0,1) ="W")
Begin Tell Target ("/platform")
Go to and Play ("windows")
End Tell Target
Else If (Substring(playerVersion,0,1) ="M")
Begin Tell Target ("/platform")
Go to and Play ("apple")
End Tell Target
End If



The Same code in F5 script:



if (substring ($version, 0,1 ) == "W") {
tellTarget ("platform") {
gotoAndPlay ("windows");
}
} else if (substring ($version, 0, 1 ) == "M") {
tellTarget ("platform") {
gotoAndPlay ("apple");
}
}




But the Tell targets won't work

Thanks,


George

_____________________________________________________________________
This message has been checked for all known viruses by UUNET delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.uk.uu.net/products/security/virus/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com

_____________________________________________________________________
This message has been checked for all known viruses by UUNET delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.uk.uu.net/products/security/virus/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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]