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
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
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?
3 matches
Mail list logo