title: Accessing object methods given as value in dictionary (AS3)
body: <p>So I am writing a program which uses <code>Dictionary</code> to store objects. For example</p>
  
  <pre><code>var dictionary:Dictionary=new Dictionary();
  var myObject = new myObject(var1, var2, var3);
  
  dicionary["key"]=myObject;
  </code></pre>
  
  <p>where <code>var1</code>, <code>var2</code>, and <code>var3</code> are simply means of assigning values to variables in <code>myObject</code>.</p>
  
  <p>my question is, can I access values or functions that are found in <code>myObject</code>? In <code>myObject</code> class I have some getters and setters. Can I use a getter to get the value of <code>var1</code> for example.</p>
  
  <pre><code>dictionary["keys"].getVar1()?
  </code></pre>
  
  <p>kind of thing.</p>