[flexcoders] Centering my app on the screen...

2009-05-16 Thread Laurence MacNeill
Is there a way I can center my app in the browser window? And keep it there if/when the browser is re-sized? Thanks, Laurence MacNeill Mableton, Georgia, USA

Re: [flexcoders] Centering my app on the screen...

2009-05-16 Thread Igor Costa
Laurence, yes. Just create a utility function like and for center the container each time the browser resize, you just add a eventlistener to the stage of app like. import flash.display.DisplayObject; import mx.events.ResizeEvent; public static function

Re: [flexcoders] Centering my app on the screen...

2009-05-16 Thread Laurence MacNeill
In the line that says 'centerMyContainer(yourComp)' what did you mean by 'yourComp'? My container? What container contains the whole app? And I assume I just call 'centerMyContainer' when the app first starts up, right? To make it centered in the browser from the very beginning, yes?