title: Mimicking typedef in ActionScript?
body: <p>I'm working on some ActionScript code that needs to juggle a bunch of similar-but-not-interchangeable types (eg, position-in-pixels, internal-position, row-and-column-position) and I'm trying to come up with a naming scheme to minimize the complexity.</p>
  
  <p>Additionally, I don't yet know what the best format for the "internal position" is – using int, uint and Number all have advantages and disadvantages.</p>
  
  <p>Normally I'd solve this with a typedef:</p>
  
  <pre><code>typedef float pixelPos;
  typedef int internalPos;
  typedef int rowColPos;
  </code></pre>
  
  <p>Is there any way of getting similar functionality in ActionScript?</p>