2 Replies Latest reply on Oct 18, 2007 10:09 PM by lucky_raga

    how to create mxml component inside action script

    lucky_raga Level 1
      Hi,

      Based on some information like say flag is set to true,
      I need to create a new mx:Text or other components.

      <mx:Script.......
      boolean flag = false; // this boolean value can be overriden in other methods.

      // Can i do something like this
      if (flag) {
      <mx:Text id="name" value="Name"/>
      }

      </mx:Script>

      If possible how can i position it?
      If not then what is the other way of achieving this task.

      Please help me.

      Thanks,
      lucky_raga