title: AS3 How to assign value of an array to the Keys of an object?
body: <p>I think this is Eval-related.</p>
  
  <p>Here, I have an array of unknown length in run-time.
  Say, for example, i wish to assign the values from the array as the KEYS of the object, as below:</p>
  
  <pre><code>var myArr:Array = ['a','b','c',...]; //unknown length
  var finalValue:int = 20;
  var myObj:Object = new Object();
  
  assignValueToObject(); 
  
  //logics of assignValueToObject function
  /*
     //TODO.. black box
  */
  
  //In the end, myObj has the value stored and can be accessed like this
  myObj["a"]["b"]["c"][...] = 20;
  </code></pre>
  
  <p>I am not sure if i need to resort to <a href="http://eval.hurlant.com/" rel="nofollow noreferrer">eval.hurlant</a>, I wish there is a simple way of doing this (either recursion or sth)</p>