So by halo skin do you mean the blue focus rectangle or just the border of the TextArea? The blue focus rectangle is floated over the component and is parented by the component's parent. I assume your floating toolbar is outside the bounds of the TextArea? You either have to have the TextArea report a new measured size that encompasses the toolbar or just float the toolbar.
If I were you, I'd use PopUpManager to float the toolbar over everything, otherwise it can get obscured by neighboring components. ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Monday, May 21, 2007 2:17 AM To: [email protected] Subject: RE: [flexcoders] TextArea: Halo skin draws over top of child controls! Here is my current code: protected override function childrenCreated():void { super.childrenCreated(); for (var i:Number = 0; i < this.numChildren; ++i) { var displayObject:DisplayObject = this.getChildAt(i); displayObject = displayObject; } // Let's add the floating toolbar to the text area! this.floatingToolBar.visible = false; this.addChild(this.floatingToolBar); for (var i:Number = 0; i < this.numChildren; ++i) { var displayObject:DisplayObject = this.getChildAt(i); displayObject = displayObject; } } I checked the indexes after I add the tool bar, and the tool bar is definitely after the halo border (the halo border is the first child in the list). Would it be better to re-design the class so that TextArea and the tool bar both belong to a parent container? ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 18 May 2007 19:30 To: [email protected] Subject: RE: [flexcoders] TextArea: Halo skin draws over top of child controls! TextArea doesn't really expect children other than its border and scrollbars. If you add another child, you have to figure out when and how to set the z-order by using setChildIndex or getting the index right on addChildAt, and correctly report the measured width/height including the child. ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Friday, May 18, 2007 8:21 AM To: [email protected] Subject: [flexcoders] TextArea: Halo skin draws over top of child controls! Hi, I have a Text Area with a child control embedded in it. Even though the child control was added last, the halo skin still gets drawn on top of everything. Which looks odd! Is there any way I can stop this? Thanks, Mark

