title: How to access object defined in parent, from child Slider movieclip
body: <p>Here is my app structure:</p>
  
  <blockquote>
    <p>parent->[slider->[movieClip1,movieClip2,movieClip3]]</p>
  </blockquote>
  
  <p>So I basically have a few movieclips inside a Slider component.<br>
  Now I have an object defined in the parent time line</p>
  
  <pre><code>var myObj:Object = new Object();... 
  </code></pre>
  
  <p>I want to access this object from movieClip1 in the Slider component.<br>
  I've tried:</p>
  
  <pre><code>trace(MovieClip(this.parent).myObj.A_function_in_the_object());
  </code></pre>
  
  <p>Which outputs:</p>
  
  <blockquote>
    <p>TypeError: Error #1034: Type Coercion failed: cannot convert
    fl.controls::BaseButton@222082e1 to flash.display.MovieClip.  at
    SliderTrack_skin/frame1()</p>
  </blockquote>
  
  <p>And</p>
  
  <pre><code>trace(parent.myObj.A_function_in_the_object());
  </code></pre>
  
  <p>Which outputs:</p>
  
  <blockquote>
    <p>1119: Access of possibly undefined property myObj through a reference
    with static type flash.display:DisplayObjectContainer.</p>
  </blockquote>
  
  <p>How do I access the object that's defined in the parent timeline from a child movieclip?</p>