title: ActionScript 2.0 dynamic smoothing
body: <p>I'm trying to make smoothing for images which loaded with <code>loadclip()</code>.<br>
  I found function for smoothing and it works but only for movieclips located in <code>_level0</code>, for example <code>_level0.mc</code>, but I want to smooth children MC, for example <code>_level0.parent_mc.children_mc</code> and then image just dissapears. <br><br>
  smoothing function:</p>
  
  <pre><code>here = this; // trace(here) == _level0
  bg_smooth = function (bg):Void {
      var bg_depth:Number = bg.getDepth();
      var bg_name:String = bg._name; 
      var bg_parent = bg._parent;
      var bg_bitmap_temp:BitmapData = new BitmapData(bg._width, bg._height, true, 0x00FFFFFF);
      bg_bitmap_temp.draw(bg);
      removeMovieClip(bg);
      bg_parent.createEmptyMovieClip(bg_name,bg_depth);
      here[bg_name].bitmapObj = bg_bitmap_temp.clone();
      bg_bitmap_temp.dispose();
      here[bg_name].attachBitmap(here[bg_name].bitmapObj,1,"auto",true);
  };
  </code></pre>
  
  <p>other code:</p>
  
  <pre><code>var loader:MovieClipLoader = new MovieClipLoader();
  var mclL:Object = new Object(); 
  mclL.onLoadProgress = function(target, loadedBytes, totalBytes) { 
   //trace(Math.round((loadedBytes / totalBytes) * 100) + "%"); 
  }; 
  loader.addListener(mclL);    
  mclL.onLoadInit = function(element) { 
      bg_smooth(element); // trace(element) == _level0.mc or _level0.parent_mc.children_mc
  };
  
  loader.loadClip("img/image.jpg", mc); // &lt;= works
  //loader.loadClip("img/image.jpg", parent_mc.children_mc); // &lt;= not works
  </code></pre>
  
  <p>also tried to write <code>_level0.parent_mc['children_mc']</code> instead of <code>parent_mc.children_mc</code> and to make <code>here == _level0.parent_mc</code> - still no luck. If I remove <code>bg_smooth(element)</code> on load complete then all works fine but of course smoothing disabled. </p>