views:

25

answers:

1

for example:

 package{
    public class A {
       var test:String;
       public function A()
       }

}
 class B{

}

the code is in the same file, we call B is inner class, then how to call the constructor of class B

+3  A: 
package
{
    public class A 
    {
       var test:String;

       public function A()
       {
          var b:B = new B();
       }
    }
}
class B
{
   public function B()
   {
       trace('class B');
   }
}
PatrickS