You can not have the same classpath/class combinations. So if you were importing inside SWFA & SWFB:
com.this.is.my.class.path.Class But on the file system, SWFA points to: myproject1/com/this/is/my/class/path/Class.as And SWFB points to: myproject2/com/this/is/my/class/path/Class.as You will get errors because Flash would have used the first classpath/class loaded since it's stored and identified as a string. You would need to either alter the class path one one of those classes, or have the class path start from the project name and not 'com'. David -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Trim Sent: Friday, June 22, 2007 9:14 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Clashing Class Names Hi Flashcoders, Can somebody confirm my worst suspicions (think I am answering my own question here) swfA loads swfB Both swfs are compiled from separate classpaths but share a similar class structure, so swfA compiles classes like swfAProject/com/UserInterface/Application.as swfAProject/com/UserInterface/UIButton.as and swfB compiles swfBProject/com/UserInterface/Application.as swfBProject/com/UserInterface/UIButton.as I'm presuming that when swfB is loaded the _global.Application class is overwritten? As when I do this the whole thing spins off into 100% CPU hell. To separate these out will I need to restructure them to be...? CommonProject/com/A/UserInterface/Application.as CommonProject/com/B/UserInterface/Application.as (intergrating the code is not an option at this point). What would people suggest as best practice here? Apologies if this is a bit of a newb question on OO. Many thanks, Michael _______________________________________________ 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