Actionscript - move, rotate, and scale an Image and place it centered at a given point
===

I have a sparks.components.Image, which is a rectangle and I would like to rotate it by a random angle, move it so as its center is a given point (100,200), and also scale it.

So far, I've tried this

    var rotate:Rotate = new Rotate(rect);
    rotate.angleBy = Math.random()*100;
    
    var move:Move = new Move(rect);
    move.xTo = 100;
    move.yTo = 200;
    
    var scale:Scale = new Scale(rect);
    scale.scaleXTo = 0.44;
    scale.scaleYTo = 0.44;
    
    move.play();
    scale.play();
    rotate.play();


but the problem is that the top-left corner seems to be at the point (100,200). Any ideas how to center it?

I've been reading about pivot points and registration points but I'm still not able to figure it out.

Thanks!