Just thought I should share a little experience I had with embedding flash content on webpages. If you’re application has a dynamic width and height (IE. You are sizing your content based on the size of the embed), you need to listen for Event.RESIZE to initialize your application properly. Here are a couple of implementation issues I’ve had with dynamically resized apps:
By adding a stage listener to detect resizes, issues of rendering the interface based on stage properties can be avoided. I should mention that both cases of rendering the page on load and on resize must be implemented to avoid edge cases.