Dragtest

Usually a movieclip within a movieclip inherits the properties of the parent clip. Thus when dragged it will move with the parent. This script shows how the child will stand still when the parent is moved.

All what it is is a bit of calculation meaning when the x and y values for the parent change the x and y values for the child change too but in the opposite direction.

syma.onMouseDown=function(){  //function to drag movieclip
   if(syma.hitTest(_root._xmouse,_root._ymouse, true)){
        syma.startDrag();
        pos1Symax=syma._x;  //parent position x
        pos1Symay=syma._y;  //parent position y
        pos1Symbx=syma.symb._x;  //child position x
        pos1Symby=syma.symb._y;  //child position y
        this.onEnterFrame=function(){
             if(pos1Symax!=syma._x){  //if we drag the movieclip...
             posNewSymax=syma._x;  //new position definition x
             posNewSymay=syma._y;  //new position definition y
             
             //subtract new positions from former ones
             
            pos2Symax=posNewSymax-pos1Symax;
            pos2Symay=posNewSymay-pos1Symay;
            
           //we subtract the difference in moving from the positions of the child.
           //Then the child will "not move" with the parent.
           
           syma.symb._x=pos1Symbx-pos2Symax;
          syma.symb._y=pos1Symby-pos2Symay;
          textField.text="Child Movie x position is "+syma.symb._x;
          }
      }
   }
}
syma.onMouseUp=function(){  //function to stop dragging
    if(syma.hitTest(_root._xmouse,_root._ymouse, false)){
        syma.stopDrag();
     }
}