If you were using AS3.0 you could use the flash.display.LoaderInfo.actionScriptversion property.
Wait--no, that only distinguishes 1.0 and 2.0 from 3.0. You could use the swfVersion property, though. Why exactly do you need to detect this? ― Mike Keesey > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Jeff Fox > Sent: Thursday, November 09, 2006 9:37 AM > To: flashcoders@chattyfig.figleaf.com > Subject: [Flashcoders] Test if using ActionScript 2.0 > > I want to create a test to see if a loaded SWF is compiled in ActionScript > 1 > or 2. I'm assuming I can use an old Flash detection trick and call a > method > that's only supported in ActionScript 2, just not sure which one to call > exactly. Will that work? Anyone have any ideas or examples? > > -Jeff > > -- > Jeff Fox > [EMAIL PROTECTED] > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com