you can rotate an object around any arbitrary point using matrix transformations.
public static function rotateAroundInternalPoint(m:Matrix, x:Number, y:Number, angleDegrees:Number):void { var point:Point = new Point(x, y); point = m.transformPoint(point); m.tx -= point.x; m.ty -= point.y; m.rotate(angleDegrees*(Math.PI/180)); m.tx += point.x; m.ty += point.y; } you can then apply the matrix on the component transform. --- In flexcoders@yahoogroups.com, "Larry Zhang" <[EMAIL PROTECTED]> wrote: > > Hello all > > I find if I rotate the image (by setting the rotation to some > value in Image property) to some degree, the axis of the object has been > changed. So if I want to draw a rect around the image object, how can I do > it. > > And, I find if I setting rotation of an object will cause the > object been rotated from it's (0, 0) point. How can I rotate it around some > other point, such as the center of the image? > > > > > > > > > > ============================== > > Make Every Day Count > > > > Larry Zhang >