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

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

      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"/>


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

      Please help me.