title: Flex/AS3 - calling a function dynamically using a String?
body: <p>Is it possible to call a function in AS3 using a string value as the function name e.g. </p>
  
  <pre><code>var functionName:String = "getDetails";
  
  var instance1:MyObject = new MyObject();
  
  instance1.functionName(); // I know this is so wrong, but it gets the point accross:)
  </code></pre>
  
  <p><strong>UPDATE</strong></p>
  
  <p>The answer from @Taskinoor on accessing a function is correct: </p>
  
  <pre><code>instance1[functionName]();
  </code></pre>
  
  <p>And to access a property we would use: </p>
  
  <pre><code>instance1[propertyName]
  </code></pre>