You're mixing together AS1 and AS2.

#include should be import:

import mLoader;

You're getting the error because you're trying in include the source of a class inside the flash, instead of importing the class itself.
C

murder design wrote:

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?
_______________________________________________
[email protected]
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

_______________________________________________
[email protected]
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

Reply via email to