Quantcast
Channel: Adobe Community : Popular Discussions - Using Flash Builder
Viewing all articles
Browse latest Browse all 70427

Flash Builder 4.7: Preloader, stageWidth is 1200 but FlexGlobals.topLevelApplication.width is 800

$
0
0

Hello

 

I am writting code to center my preloader. Using Flash Builder 4.7 when I request this.stage.stageWidth on my Asus tablet I get 1200, then when FlexGlobals.topLevelApplicaiton becomes available I use FlexGlobals.topLevelApplication.width and it gives me the value I am looking for which is 800. I have it working where the display is delayed until the FlexGlobals.topLevelApplication is not null but it would be nice if the loader could start showing from the very start.

 

One thing I really liked about FB 4.7 was that it resized the main view to fit the screen better vs having it too big. How do I access the "scale" that's being applied so I can just calculate the stageWidth before topLevelApplication is ready.

 

Thanks!


Viewing all articles
Browse latest Browse all 70427

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>