Hello, Thanks for the suggestion, but I tried in that in the meantime.
2 very undesired things happen: 1) The movie components are still in the exact same spots. 2) The bottom StatusBar actually is 1-inch shorter - this not even reaching to the other side of the stage It's almost as if (especially in case #2) that the StatusBar is basing it's _width property on mis-information. If I didn't know better, it's as if there are timing problems going on. I thought that the "onLoad" event fixes problems like that - since it waits until all components are instantiated and initialized, before Dispatching the "I am all finished" signal. What I have is this (in root): ===================================================== var stageSizeListener:Object = new Object(); stageSizeListener.onResize = function():Void { var stageHeight:Number = Stage.height; var stageWidth:Number = Stage.width; // Main Menu mainMenu._width = stageWidth; mainMenu.updateDisplay(true); // Map Status Bar mapStatusBar._width = stageWidth; etc.... } this.onLoad = function():Void { stageSizeListener.onResize(); } Stage.addListener( stageSizeListener ); ===================================================== All this resize code works beautifully, but only AFTER the movie is completely loaded, and the user MANUALLY resizes the browser. Am I missing something here? I was hoping the onLoad function would alleviate any timing issues, but not only does it NOT work, it's actually causing my StatusBar (which resides at the bottom) to have a lesser width size. If I remove the onLoad code, then eveything paints fine - but things are not positioned correctly. Any more ideas? Thanks, Mike -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Matsikas Sent: Wednesday, April 12, 2006 12:02 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Manually triggering the Screens "onResize" event manually call your onResize method in your main Mc's onLoad. On 4/12/06, Mike Anderson <[EMAIL PROTECTED]> wrote: > > Hello All, > > I have a Flash App, that uses a "Non-Scaling" type setup - in which > upon browser resize, the controls simply reposition themselves around, > creating more usable area for content. It's works beautifully, but > with a catch. > > The problem is, my application insists on starting out at it's > Published Size - so if the browser is larger than the application, > there is a bunch of white-space along the Right and Bottom. Of > course, I designed the app to take up the entire browser window. > > The moment the user resizes the browser, the application immediately > snaps into place taking up 100% of the browser area - and everything > is well. > > How can I trigger this event, the moment the application is loaded in > the browser??? > > Thanks in advance for your help, > > Mike > > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com http://training.figleaf.com > _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com