title: AS3: Extending The Dictionary Class - Accessing Stored Data
body: <p>So I want to extend the dictionary class. Everything works so far except that in some of my methods that need to reference the dictionary's content I make a call like:</p>
  
  <pre><code>this[ key ]
  </code></pre>
  
  <p>It doesn't like that. It just tells me that there's no property 'key'.  Is there a way to way to access the data within this class?</p>
  
  <p>Also, I'm using an integer for the key.</p>
  
  <p><strong>Edit:</strong> I've found that the same behavior happens when you extend Array.</p>
  
  <pre><code>var myArray : Array = new Array();
  trace( myArray[ 0 ] );
  var myArrayExtender : ArrayExtender = new ArrayExtender();
  trace( myArrayExtender[ 0 ] );
  </code></pre>
  
  <p>Where in this case, myArray returns "undefined" and myArrayExtender throws error 1069. ArrayExtender is an empty class that extends Array and calls super() in the constructor.</p>