title: How to trigger second event when the other event is completed?
body: <pre><code>var a:PolygonEvent;
  a.addEventListener("Clearpage",clpag,false,0,true);
  a.addEventListener(Event.COMPLETE,showselectpoint,false,0,true);
  </code></pre>
  
  <p>I am trying to trigger the showselectoint after the first clearpage is done complete when I normally call these two events one after another it executes the second and first just after one another it doesnt wait for the first event to be finished. I have written this code now but it shows an error. Can anyone tell me how I can do it? I just need to declare a with some type I dont get what should be its type.</p>