Hello with the code below, first I create a empty movie clip and then attach another movieclip inside of it. The problem is I can not attach the movie clip to the topleft of the one I created first, it attaches someplace more top and left. Code is below.
MovieClip.prototype.createArtWork = function(sName, startx, starty, iWidth, iHeight, iColor) {
var theMC = this.createEmptyMovieClip(sName, this.getNextHighestDepth());
theMC.beginFill(iColor, iAlpha);
theMC.moveTo(startx, starty);
theMC.lineTo(startx+iWidth, starty);
theMC.lineTo(startx+iWidth, starty+iHeight);
theMC.lineTo(startx, starty+iHeight);
theMC.lineTo(startx, starty);
theMC.endFill();
iHolder = theMC.attachMovie("holder","holder",this.getNextHighestDepth());
theMC.onPress = startDrag;
theMC.onRelease = theMC.onReleaseOutside=stopDrag;