From my main flex mxml, I am trying to detect the size of a rect:Rectangle that I created in my InfoBubble.as class. The info bubble itself is created in my InfoMap.as class. How can I access the attributes of the rectangle I created?


Here is the variable portion of the InfoBubble class:

Code:
	public class InfoBubble extends Sprite
	{
		//public var textField:TextField;
		private var background:Shape;
		private var shadow:Shape;
		public var infoClip:MarkerClip;
		public var mLoader:Loader = new Loader();
		protected var map:InfoMap;
		//var infoClip:MarkerClip;
		public var infoBubble:InfoBubble;
		//public var checkPolicyFile:Boolean = false;
		public var rect:Rectangle;
		//private var square:Sprite = new Sprite();
		
		public function InfoBubble(urlLink:String)
		{