I don't know if it would be classed as recommended, though I do not believe there is any specific way to check for version numbers prior to flash 5.
I have seen this method used in javaScript i.e. to check for support of a feature before trying to use it. Sorry can't be any more help Regards Ali -----Original Message----- From: jleo [mailto:[EMAIL PROTECTED] Sent: 07 December 2005 16:46 To: Flashcoders mailing list Subject: RE: [Flashcoders] Can FCS detect player version? Appreciate it. Is this considered the "correct way" to do this? Meaning that checking for unsupported code, etc? At 10:49 AM 12/7/2005, you wrote: >If you are just looking to perform different actions per flash version... > >Using a flash 7 movie (have not checked 8 but assume it would work on that >as well) you can check what version of flash the client is being used. > >Then code specific actions for that version of flash to execute. In one >project I used the following .... (it's a bit of a bodge but works :o) ) > >//On frame 1 I checked for to see if flash 5 sytax was supported. > > var checkFlash5 = true; > > // as flash 4 player does not support _root this condition will >return false > // as 4 is no good displayed anim asking them to upgrade :o) > if (_root.checkFlash5) > { > gotoAndPlay (4); > } > else > { > play(); > } > > >// on frame 2 > > // contain any actions you wish to perform for a flash 4 player and > stop(); > >// on frame 4 > > // contains code to check flash player versions > > o = new Object (); > o.version = getVersion().split(","); > o.majorVersion = int(substring(o.version[0],o.version[0].length, >1)); > o.minorVersion = int(o.version[2]); > > // you can then perform any actions you wish to depending on version > > >Hope that this is maybe of some help > >Ali _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* Dyson -- the cleaner that doesn't lose suction. http://www.dyson.com *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders