Flasher Archive

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


Subject: Re: FLASH: Platform / version sniffer that will also work in Flash 4 player I Really need this to work
From: Gregg Caines
Date: Wed, 1 Nov 2000 17:12:53 GMT

Is the SWF a version 4 SWF? You're obviously authoring in
Flash 5, but how are you exporting? Also If you're going to use
$version in Flash 4, you must access it like this:

eval("$version")

(and make sure you're dealing with expressions, not strings).

If you're still having trouble, create an on-screen text box to tell
you what the variable really is. That should give you a hint about
what is going wrong. Also keep in mind that $version doesn't
work in the authoring environment...only through a web page so
don't bother trying TRACE.

Your biggest problem is the lack of eval though, as I said earlier.

---------------------------------------------------
Gregg Caines
n e o m e t r i x systems inc.
http://www.neometrixsystems.com
gcainesatneometrixsystems [dot] com


> Simple passing of string to tell target what to do isn't working!
>
> I am try to use the "$version" command (which does work in both F4 & F5)
to
> "sniff" what platform and what version of Flash player they are using.
Once
> this has been found out the appropriate icon is displayed...simple in
> theory..but it won't work with the F4 player, but works fine with F5
> player!!
>
>
> if(subString($version,0,1)== "M"){
> tellTarget (clip) {
> gotoAndStop("apple");
> }
> } else if(subString($version,0,1) == "W"){
> tellTarget(clip){
> gotoAndStop("pc");
> }}
>
> But I really need this or something like this to work in F4 player
>
>
> Anyone got any suggestions?
>
>
>
> Thanks
>
>
> George.
>
>
>
> I have tried to create a similar scipt in F4:
>
> Set Variable: "os" = "$version"
> If (Substring(os,0,1) =" W")
> Begin Tell Target ("/platforrm")
> Go to and Play ("windows")
> End Tell Target
> Else If (Substring(os,0,1) =" M")
> Begin Tell Target ("/platforrm")
> Go to and Play ("apple")
> End Tell Target
> End If
>
>
> But I can't seem to enter $version as an action even though I have seen
this
> done on: http://www.flashbrothers.com/vers/



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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


Replies
  FLASH: Platform / version sniffer that w, George Medve

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