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
I had the exact same problem. I solved it by using move() instead of
setting the x and y.
this.move((_root.width - this.width) / 2, (_root.height - this.height) /
2, false);
I am calling this code on creationComplete in the popup class.
Paul
-Original Message-
From: bobpardoe1959
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;
3 matches
Mail list logo