Recently stumbled onto a blog post that pointed out the fact that you could use loaderInfo.width/height properties in junction with determining the center of the stage. This information helps a lot as I have found that IE6 will sometimes not report the correct size of the SWF in the browser on the stage properties .width or .stageWidth for example.

  • stage.width + stage.height – the size of the content on the stage.
  • stage.stageWidth + stage.stageHeight – that dimensions of the monitor the flash player is currently consuming
  • loaderInfo.width + loaderInfo.height – that of the Fla’s publish settings

http://troyworks.com/blog/


Author: Jonathan Dunlap
Jonathan is an experienced software engineer, sole blogger of JADBOX, author of FlashMVC, humanitarian, and has contracted work for Microsoft, Coke, and Disney.
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • email
  • Furl
  • LinkedIn
  • Pownce
  • Reddit
  • StumbleUpon
  • TwitThis
Auto-Generated Related Posts:
  1. Countdown to Mobile Flash Player 10...
  2. Why HTML 5 is NOT a Flash killer...

Tags: ,