PDA

View Full Version : stage center



SLaY
February 10th, 2010, 10:11 AM
Hey ppl, I have a question regarding stage centering

The problem is: I can center the stage at top or at bottom, but if it is centered at top, when the window is resized obviously the top will be quiet and the bottom of the page will get bigger/smaller

If it is centered at bottom, what will change is the top.

So, how can I center at the middle, and on resize it changes the same top and bottom values ?

Another question, is it possible when on resize at center to resize until X pixeis at top and then resizing only at bottom ?

Sorry for any confusion in english and tks


Edit: Basically, I want the stage to be centered until X resolution, and then I want it to just 'grow' on the bottom and not on the top

BoppreH
February 10th, 2010, 10:42 AM
Search for Fluid Layout.

You can basically listen to the StageResize event and change the centering accordingly.

SLaY
February 10th, 2010, 01:41 PM
And how can I do it to after some pixeis to not grow anymore on top and starting growing only on bottom ?