I have been programming quite a long time , but have never seen such a thing... 
You should instantiate the class not include it .

Sent from my iPhone

On Jul 10, 2010, at 11:23 AM, Radioactivelizard <[email protected]> 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?

Reply via email to