On 7/10/2010 11:23 AM, Radioactivelizard wrote:
i'm attempting to create a AS3 script that loads another script that
will in turn load models  to my scene

-----Main.as--------

   function main()
       {
          include "MyBSPProject.as"
                 }
------------------------
if i set MyBSPProject.AS as always compile it compiles and loads
correctly
when loaded from main.as i get. "Error: Classes must not be nested"

the error comes from MyBSPProject.as (MyBSPProject.as is created by
prefab)

am i going about this the wrong way by attempting it as a include
statement?
In flash/actionscript3 you can only use the #include directive in the Flash IDE (never in an class file - .as)

Reply via email to