Hi, Remove the include line, it´s not neccessary, since include "copy&pastes" the content of the as class in you rcurrent document, which is not what you want.
The next error you´ll probably recieve is that you missed a Constructor in your Class, you need at least this class mLoader { function mLoader () { }; } hth AGo -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of murder design Sent: Wednesday, March 01, 2006 5:46 PM To: flashcoders Subject: [Flashcoders] oop question? my main flash file only contains: #include "mLoader.as" var mLoader1:mLoader = new mLoader( ); ... while my .as file only contains: class mLoader { } but i get the following error: **Error** Z:\design\murderdesign.com\reusable\loader\mLoader.as: Line 1: Classes may only be defined in external ActionScript 2.0 class scripts. class mLoader { Total ActionScript Errors: 1 Reported Errors: 1 any idea what that is? _______________________________________________ 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