title: Access caller object when using composition in AS3
body: <p>In ActionScript3, I am trying to access the properties of the caller object from a composite.</p>
  
  <pre><code>public class Robot {
   ...
   private var controlPanel:ControlPanel;
   ...
   public function Robot() {
   ...
   cPanel = new ControlPanel();
   ...
    }
   }
  </code></pre>
  
  <p>My ControlPanel needs to access properties from Robot instance, but I don't think I can pass <code>this</code> when calling the ControlPanel...</p>
  
  <pre><code>public class ControlPanel{
  ...
   public function ControlPanel() {
    //How can I refer back to robot properties ?
    //
   }
  </code></pre>
  
  <p>}</p>
  
  <p>I believe I am in the case of composition as a Robot <em>has a</em> ControlPanel. I am thinking of using events, but there are many properties I need to access. </p>
  
  <p>What would be the best way to solve this?</p>