title: as3 - how to add multi custom class into one asset?
body: <p>I'm a new mem of as3. Today i make a work but i was stacked. pls help me:<br/>
  My example:</p>
  
  <p>• I have a Symbol in Library with linkage name: <code>box_mc</code></p>
  
  <pre><code>import flash.display.MovieClip;
  import flash.events.Event;
  import Src.smoothAnimate;
  
  var box_is:MovieClip = new box_mc();
  box_is.name = 'box_na';
  addChild(box_is);
  
  var box_is:smoothAnimate = new smoothAnimate();  // ERROR 1151 HERE
  </code></pre>
  
  <p>• i have a custom class :</p>
  
  <pre><code>package Src
      {
      import flash.display.*;
      import flash.events.Event;
  
      /**
       * ...
       * @author Trunglvt
       */
      public class smoothAnimate extends MovieClip
      {
          private var currentW:Number;
          private var currentH:Number;
          private var endX:Number;
          private var endY:Number;
          private var sp:Number;
          function smoothAnimate() {
              trace('trace');
          }
  
          public function changeSize(speed:Number, newW:Number, newH:Number) {
              trace('test');
              this.endX = newW;   // get new size
              this.endY = newH;
              this.sp = speed;
  
              this.addEventListener(Event.ENTER_FRAME, onFrame);  
          }
          private function onFrame(e:Event) {
              e.target.currentW = e.target.width;
              e.target.currentH = e.target.height;
  
              e.target.width += (e.target.endX - e.target.currentW) * e.target.sp;
              e.target.height += (e.target.endY - e.target.currentH) * e.target.sp;
  
              if (Math.floor(e.target.width) == Math.floor(e.target.endX) ||
                  Math.floor(e.target.height) == Math.floor(e.target.endY)) {
                  //stop function enterFrame here;
                  removeEventListener(Event.ENTER_FRAME, onFrame);
              }
          }
      }
  }
  </code></pre>
  
  <p>but when run is make error:</p>
  
  <pre>1151: A conflict exists with definition box_is in namespace internal.</pre>
  
  <p>i want when flash run, the <code>box_is</code> will be add in stage, resize by function <code>changesize</code>.</p>
  
  <p>Pls help me.
  Thank you.</p>