8 Replies Latest reply on Jun 25, 2007 1:10 PM by Greg Dove

    Create controls inside a container?

    JoMasta
      So I am now creating a checkbox at runtime with the following code:

      import mx.controls.CheckBox;
      createClassObject( CheckBox, "button2", 5, { label:"Test Checkbox" } );

      Is there a way to create a button inside another object like a ScrollPane (or something else?)? I created a ScrollPane at designtime, and would like the checkboxes, as well as text and perhaps draw lines within it at runtime. Is this possible? If not, is there another container which would allow this?

      I am trying this with the following code:

      CounterScrollPane.createClassObject( CheckBox, "button3", 5, { label:"Test Checkbox" } );

      but that doesn't work.

      Any thoughts?

      Thanks!