The important thing to remember (just learned this Monday, from Aral's
workshop at Flash Forward) is that "#include" actually inserts the content
of an external .as file in the position where the include statement is
issued, whereas "import" does not insert, load, or import anything -- all
it does is say, "there is a class file that the script may or may not be
looking for in this location and by this filename", which is required only
when the class file does not exist in the same location as the FLA being
compiled (the compiler will automagically look in the current directory).
--
Byron "Barn" Canfield
> 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