plz import the as file at the beginning of your Main.as, rather than the
begining of function Main()

- Rujia

On Sat, Jul 10, 2010 at 4:23 PM, 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