Rectangle<num> getBounds(DisplayObject targetSpace)

Returns the bounds of this display object relative to the specified targetSpace.

This method may return ´null´ if this display objects has no relation to the targetSpace.

Source

Rectangle<num> getBounds(DisplayObject targetSpace) {
  var rectangle = this.bounds;
  var matrix = this.getTransformationMatrix3D(targetSpace);
  if (matrix == null) return null;
  return matrix.transformRectangle(rectangle, rectangle);
}