title: flex: trouble resize and position SWFLoader
body: <p>I have a complicated problem with a couple of SWFLoaders.</p>
  
  <p>I have an application that loads a swf with a SWFLoader. The loaded swf loads another swf (just a compiled fla). I am adding all my resize and position logic in my loaded swf and it works good on event resize, but when I'm trying to run the same code in my swfs applicationComplete it fails. The same code on startup works great if I run my swf as a standanlone, but for some reason the scale is different when I load it into my application.</p>
  
  <p>I'm just setting it's width and height to the browsers size so everything but the scale is the same!</p>
  
  <p>This is my trace from my loaded swf as a standalone:
  swfLoader: 1435 742
  FlexLoader: 1319.1 742 1.0305555555555554 1.0305555555555554</p>
  
  <p>and this is from the same loaded swf when it's loaded in my application:
  swfLoader: 1435 742
  FlexLoader: 1159.55 742 0.9053196681307955 0.9053196681307955</p>
  
  <p>swfLoader is my loaded swf's swfloader that loads my compiled fla. That is what I need to resize and position to the center. The next numbers are width and height. FlexLoader is the swfLoaders loader (or content if you will). The numbers are width, height, scaleX and scaleY.</p>
  
  <p>As you can see the size is the same (this is also the same for the loaded swfs application), but the scale is different. Both scales are calculated from with 1280 and height 720 wich is my compiled fla's size.</p>
  
  <p>The only reason why I'm messing around with scale at all is that I can't find the accurate width of my compiled fla to center it (application.width - loadedSwf.width / 2) So if anybody knows a better way to find that I would appreciate that to very much!! :)</p>
  
  <p>The part I'm not getting is why the scales are different? What part am I missing?
  I am completely lost and been trying to solve this for quite some time now :p </p>