title: clone flex component
body: <p>I am trying to duplicate a flex component at run time.</p>
  
  <p>For example if i have this</p>
  
  <p>mx:Button label="btn" id="btn" click="handleClick(event)"/></p>
  
  <p>i should be able to call a function called DuplicateComponent() and it should return me a UI component thts exactly same as above button including the event listeners with it.</p>
  
  <p>Can some one help me please??
  Thanks in advance</p>