The url you hit is usually an HTML page with an HTML tag in the BODY that 
determines the size and position of the Flash Player and thus the stage.  Look 
at the .html file and see how it works.  If you set your application's 
width/height to 100% then it browser window and stage should match.

See the doc on scaleMode and align defaults to understand how they behave.  In 
a Flex app, you shouldn't need to do that since we call that for you.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Brad Bueche
Sent: Monday, April 20, 2009 7:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] StageAlign and StageScaleMode





Why do I have to use this (below)  to ensure that my web browser layout is 
perfectly synced with my stage?  I would think that my browser window IS the 
"stage".   Why is this not true?  What am I failing to understand and where can 
I read more to understand whats going on here.

stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;

thanks for your time!
brad

Reply via email to