Why don't you just load one of two swfs, each with their own includes?
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Tom Lee > Sent: Tuesday, June 20, 2006 1:56 PM > To: 'Flashcoders mailing list' > Subject: [Flashcoders] Targeting multiple player versions with one swf > > Hi everyone, > > > > Does anyone know of any techniques that can be used to write > ActionScript targeting more than one version of the Flash > player? This would be for the purpose of creating an > application that is backward-compatible, but uses > functionality specific to a newer SWF specification when a > compatible player is available. One way I can think of to > accomplish this would be to compile separate builds of the > swf and do some player version detection to decide which one > to load. However, this approach strikes me as inelegant. I > would actually prefer to do something analogous to: > > > > // Pseudo-code > > > > if(playerVersion >= 8){ > > // do modern code > > } else { > > // do old-style code > > } > > > > > > The problem here is that if you compile for an old version, > the compiler throws errors on the modern code, and if you > compile for a modern version, the older players don't play > the swf. right? > > > > Has anyone hacked around this with MTASC or have another > trick up their sleeves? > > > > Thanks, > > > > -tom > > _______________________________________________ > 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