title: How do you convert events from AS2 to AS3?
body: <p>I am working on AS3. how do you convert this AS2 code to AS3?</p>
  
  <pre><code>on(press) {
      zaman = setInterval(cogalt,1);
  }
  
  on(release) {
      clearInterval(zaman);
  }
  </code></pre>