title: Adding drawing objects to a collection in Flex 4
body: <p>I'm trying to make annotations on an image.<br/> 
  I want to store all these annotations into a collection so that I can later remove or edit particular note(annotation).</p>
  
  <p>I'm creating a UIComponent instance for example markUp and doing </p>
  
  <pre><code> markUp.graphics.lineStyle(2, drawColor);
   markUp.graphics.moveTo(x1, y1);
   markUp.graphics.lineTo(x2, y2);
  </code></pre>
  
  <p>I want to create a UIComponent instance every time whenever user makes a new annotation on my image. </p>
  
  <p>How to generate dynamic instance and how to save them to a collection. Any help is appreciated.</p>