localToGlobal & globalToLocal - what about ROTATION?

Hi,
localToGlobal & globalToLocal are pretty cool methods for movie clips.

Except one thing. Rotations go bad. Let me explain it to you:

Say you have a movie_B inside a movie_A, loaded externally. And say you need to make a duplicate of movie B on stage at new coordinates (newx,newy) and rotated around its center by rot degrees. And we do the code:

//load external movie_A
var newClip:MovieClip = this.createEmptyMovieClip(holderName, this.getNextHighestDepth());
var jClip:MovieClip = newClip.createEmptyMovieClip(“jClip”, newClip.getNextHighestDepth());
jClip.loadMovie(“path_to_swf_movie”);
jclip._x = 0;
jClip._y = 0;
newClip._x = xPos;
newClip._y = yPos;
//convert global target point to local coordinates
var point:Object = {x:newx, y:newy};
obj.globalToLocal(point);
//duplicate movie
movieB.duplicateMovieClip(“newName”, depth, {_x:point.x,_y:point.y,_rotation:rot});

Is this OK? NO, it’s not, because duplicate movie will rotate NOT around its center, but around original movie center. Which sucks.

HOW can this be fixed, please?

Thanks