   [web] Flash - Drawing At Wrong Coordinates
  When running my swf in a web browser (I tried both firefox and chrome, same results), I want to be able to center text, but it seems to be rendering incorrectly.In the image below you can see a screenshot of the swf in a chrome window. The black square is being draw at (0, 0) but obviously, it's not on the far left on the window. Why is that? You can see the stage.stageWidth is 1680, which is correct.Also, I should note that when I size the chrome window to a width of 550, the size of the stage I worked with in the .fla, it lines up correctly. It almost seems like it's a problem with resizing?   
  Check where the SWF is in the HTML document. Your block is probably placed correctly inside the SWF, which is at [wherever] inside the web page. The easiest ways (off the top of my head) are to turn on your developer tools and mouseover the  flash applet or to add a border to the element in your code.Otherwise, Chrome (at least) has several issues with Flash, especially on resizing/scrolling. I haven't seen any comment from Google, but have heard about and personally encountered the problems -- luckily, Chrome users are usually tech savvy enough to switch browsers with problems. No idea what could be going on with Firefox.I haven't used Flash much beyond tweaking some Actionscript... Have you set the width to always be 550? Try zooming (CTRL++) to see if the applet still looks as expected. If there are any Flash developers out there, hopefully they can let you know what to do about variable sized applets.   ;  I actually browsed directly to the swf file so it's not embedded in an html page. When I embed it at a width of 550 everything renders correctly. Maybe this is a non issue but I guess I was just curious because when I view it in debug mode in the swf player using Flash everything renders correctly too. The beige background color is the color of the stage.   ;  Okay, skimmed some Actionscript docs and this seems to be a not-uncommon problem -- well, the stage.stageWidth being set at odd times, anyway. The fix I've found involves adding an event listener on resize (stage.addEventListener(Event.RESIZE, onResize)) and fixing your drawing inside the function. Seems clunky to me but it should work.Assuming you don't need any fixed height/width, setting the dimensions with percentages like any other HTML element should work fine.Though again, I'm not much of a Flash guy, so there may be another better solution. Hope that helps.   