public class PanelTest extends Panel{
   private var b1:Button;
   
   override protected function createChildren():void {
      super.createChildren();

      b1 = new Button;
      this.addChild(b1);

In order to add another 19 buttons, must vars b2 to b20 be declared
etc?  This is a very simplistic example of what I need to do (
dynamically add  multiple instances of the same complex component
class to a layout). Because b1 cannot be "reused" for another
addChild(), how would you add the other buttons? TIA,

Mic.



Reply via email to