You put them outside the package.

Or rather, I do and it works. :-D

So:

package{

   public class A{
       private var b:B = new B();
       private var c:C = new C();

       public function A(){;}
   }
}

class B{
    public function B(){;}
}

class C{
    public function C(){;}
}

HTH,
   Ian

On Tue, Nov 4, 2008 at 9:19 AM, Niels Wolf <[EMAIL PROTECTED]> wrote:
> Hey.
>
> Short notion about AS3 hidden/private classes.. It seems you are not allowed
> to have more than one!
>
> package{
>
>    public class A{
>        private var b:B = new B();
>        private var c:C = new C();
>
>        public function A(){;}
>    }
>
>    class B{
>        public function B(){;}
>    }
>
>    class C{
>        public function C(){;}
>    }
> }
>
> -- TypeError: Error #1115: ::C is not a constructor.
>
> Change order of B with C so C gets defined first and you will get:
> TypeError: Error #1115: ::B is not a constructor.
>
> Compiler does not complain at all and i dont know why on earth i am only
> allowed to have one hidden class?
>
> Niels
>
>
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to