Ideally, I wouldn't be using a size for the app - I'd be using 100% there as well. I'm only using 1024x768 because the app appears to be about twice as large as the screen when using StageScaleMode.SHOW_ALL. If I don't use 100% when embedding the movie, it isn't fullscreen. I want the movie to be fullscreen at any resolution.
--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote: > > Instead of 100% you must use the unscaled size of the app > > > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of kevin.gurton > Sent: Friday, October 19, 2007 6:21 AM > To: [email protected] > Subject: [flexcoders] Fullscreen Flash and PopUpManager > > > > Hi, > > I'm having problems combining fullscreen Flash, for any resolution, > that resizes with the browser with PopUpManager. I'm using swfobject > to embed the Flash using the following code: > > var so = new SWFObject("myMovie.swf", "myMovie", "100%", "100%", > "9", "#FFFFFF"); > so.addParam("scale", "show_all"); > so.write("flashcontent"); > > I'm then setting the StageScaleMode to SHOW_ALL, so that the > application resizes with the browser window. However, when I display a > popup, if the screen resolution is lower than the size of my > application, the region that PopUpManager disables doesn't cover the > whole of the application. The parent that I am passing into the > PopUpManager.addPopup method is the application itself. My code for > this looks something similar to: > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml > <http://www.adobe.com/2006/mxml> " > applicationComplete="initApp()" > width="1024" > height="768"> > <mx:Panel id="main_panel" height="100%" width="100%"> > <mx:Button id="testButton" x="100" y="100" width="100" height="100" > label="Show Popup"/> > </mx:Panel> > <mx:Script> > <![CDATA[ > import mx.managers.PopUpManager; > import mx.core.Application; > import mx.containers.TitleWindow; > > private function initApp():void > { > stage.scaleMode = StageScaleMode.SHOW_ALL; > testButton.addEventListener(MouseEvent.CLICK, showPopup, false, 0, > true); > } > > private function showPopup(event:MouseEvent):void > { > PopUpManager.addPopUp(new TitleWindow(), > Application(Application.application), true); > } > ]]> > </mx:Script> > </mx:Application> > > Can anybody help please? >

