I don't have the recipe 'ready', but basically, the non-NO_SCALE stage
modes never send resize events to the application, they simply scale the
entire stage, expecting that everything fit within it.

 

So, you have to pick a size for the stage, get the app to layout at that
size so there is no overflow and then when the wrapper resizes the
stage, everything should work ok.  Therefore, I'm pretty sure you can't
use 100% on the app tag, and I think you have to set the size on
AC_FL_RunContent in the wrapper.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of kevin.gurton
Sent: Monday, October 22, 2007 7:07 AM
To: [email protected]
Subject: [flexcoders] Re: Fullscreen Flash and PopUpManager

 

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] <mailto:flexcoders%40yahoogroups.com>
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Instead of 100% you must use the unscaled size of the app
> 
> 
> 
> ________________________________
> 
> From: [email protected] <mailto:flexcoders%40yahoogroups.com>
[mailto:[email protected] <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of kevin.gurton
> Sent: Friday, October 19, 2007 6:21 AM
> To: [email protected] <mailto:flexcoders%40yahoogroups.com> 
> 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> 
> <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?
>

 

Reply via email to