Hi Bob, This problem sounds familiar to me but wasn't able to reproduce with my quick test. I created an MXML component like this:
<?xml version="1.0" encoding="utf-8"?> <mx:TitleWindow xmlns:mx="http://www.macromedia.com/2003/mxml" creationComplete="this.x=this._parent.width/2-this.width/2;this.y=this._pare nt.height/2-this.height/2;"> And, the popup appears with shadow... Have you tried this.move(x.y)? If you could post your code, that would be helpful to repro your issue. Thank you, -Yukari -----Original Message----- From: bobpardoe1959 [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 12, 2004 5:23 AM To: [email protected] Subject: [flexcoders] setting x and y on creationComplete event for a popup causes bug I am trying to centre my popoup screen (which is an mxml TitleWindow component) by using the creationComplete event to do the following this.x = (parentDocument.width / 2) - (this.width / 2); this.y = (parentDocument.height / 2) - (this.height / 2); What happens is that the shadow is in one location and the topmost layer with the controls on it is in another. They are about 100 pixels apart on the y axis, on the x axis they line up. Clicking on the titlebar realigns them, but that is hardly the point. Any ideas ? BOb Yahoo! Groups Links

