title: How to properly test for class inheritance in ActionScript 3?
body: <p>In ActionScript 3, you can figure out whether object O is of class C or of a class that extends or implements class C (directly or indirectly) using...</p>
  
  <pre><code>if (O is C) {
      ...
  }
  </code></pre>
  
  <p>What I want to do is to test whether class CC extends or implements class C (directly or indirectly), without having to instantiate an object.</p>
  
  <p>In Java, you would use...</p>
  
  <pre><code>if (C.isAssignableFrom (CC)) {
      ...
  }
  </code></pre>
  
  <p><a href="http://java.sun.com/javase/6/docs/api/java/lang/Class.html#isAssignableFrom(java.lang.Class)" rel="noreferrer">http://java.sun.com/javase/6/docs/api/java/lang/Class.html#isAssignableFrom(java.lang.Class)</a></p>
  
  <p>How about ActionScript 3?</p>
  
  <p>Thanks!</p>