title: How to check if two objects are of the same type in Actionscript?
body: <p>I want to do this in Actionscript:</p>
  
  <pre><code>typeof(control1) != typeof(control2)
  </code></pre>
  
  <p>to test if two objects are of the same type. This would work just fine in C#, but in Actionscript it doesnt. In fact it returns <code>'object'</code> for both <code>typeof()</code> expressions because thats the way Actionscript works.</p>
  
  <p>I couldn't seem to find an alternative by looking in the debugger, or on pages that describe <code>typeof()</code> in Actionscript.</p>
  
  <p>Is there a way to get the actual runtime type?</p>