title: Is MouseEvent a class or an instance of a class or both?
body: <p>I'm having trouble getting the hang of as3 syntax (php is the only other coding language I know)</p>
  
  <pre><code>mybutton.addEventListener(MouseEvent.CLICK, myListenerFunction);
  
  function myListenerFunction(e:MouseEvent):void
  {
       // function body
  }
  </code></pre>
  
  <p>In this code it seems like MouseEvent is an instance of the class MouseEvent.</p>
  
  <pre><code>MouseEvent.CLICK
  </code></pre>
  
  <p>However in this code it seems like e is an instance of class MouseEvent</p>
  
  <pre><code>e:MouseEvent
  </code></pre>