title: can't get movieClip from loaded swf
body: <p>With following code  I import an external swf file. When I try to reach a movieClip that is named as temaResim in imported swf, Flash gives me error ,cant find the movieclip. I am pretty sure that I have temaResim in imported swf file, any help will be very useful. </p>
  
  <p>Thanks guys.
  <div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function temaYukle(temaNo)
    {
     var resim:URLRequest = new URLRequest(yolum+"videolar/bilisselbecerilermodulu/17/"+temaNo+".swf");
     var img:Loader = new Loader();
     img.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
     img.load(resim);
     function imageLoaded(e:Event):void
     {
      setRegPoint(img,img.width/2,img.height/2);
  
      if (temaNo==temam)
      {
       trace(e.target);
       tema = e.currentTarget.content as MovieClip;
       img.scaleX *=  0.85;
       img.scaleY *=  0.85;
       img.x = stage.stageWidth / 2;
       img.y = stage.stageHeight / 2 - 20;
       addChildAt(img,0);
  // here comes error         
  trace(tema.temaResim);
       
       temaMaske();
      }
                }
            }</code></pre>
  </div>
  </div>
  </p>
  
  <p>I worked on imported swf file When i import onther image to library of imported swf and set it's instance name  as temaResim it works but When I try the image that ı have to, it dosn't work.    </p>