Copy link to clipboard
Copied
I have a FLVPlayer with a skin on stage and I want to listen for the player going into full screen mode when the skin's fullscreen button is clicked. And I want to listen for it going back to normal but I think that is easy enough, I just listen for the escape key, I think. How do I do that?
the stage has a fullscreen event you can use:
stage.addEventListener(FullScreenEvent.FULL_SCREEN,f);
function f(e:FullScreenEvent):void{
// this executes when entering or leaving fullscreen. you can use stage.displayState to determine which has occurred.
}
Copy link to clipboard
Copied
the stage has a fullscreen event you can use:
stage.addEventListener(FullScreenEvent.FULL_SCREEN,f);
function f(e:FullScreenEvent):void{
// this executes when entering or leaving fullscreen. you can use stage.displayState to determine which has occurred.
}
Copy link to clipboard
Copied
Great! Thanks. I will try it now.
Copy link to clipboard
Copied
you're welcome.
Copy link to clipboard
Copied
if i want my screen size to stay fixed
for example if i have 640 by 700 and all my objects are added and set to fit with this size
i dont the user to maxmize the file
this is for stand alone swf file
what should i do ?
Copy link to clipboard
Copied
use:
stage.scaleMode="noScale"
Copy link to clipboard
Copied
didnt work...
Copy link to clipboard
Copied
it didn't work to do what?
Copy link to clipboard
Copied
i dont the user to maximize the screen even if he preesed the maimize button in the toolbar
i want it to stay 640 by 700
Copy link to clipboard
Copied
you should not try and control a user's browser window. but, if you insist, you'll need to use javascript.
Copy link to clipboard
Copied
not the browser
im using a stand alone swf player
Date: Mon, 9 Apr 2012 09:05:51 -0600
From: forums@adobe.com
To: mr_moudi90@hotmail.com
Subject: Listen for Full Screen mode
Re: Listen for Full Screen mode
created by kglad in Action Script 3 - View the full discussion
you should not try and control a user's browser window. but, if you insist, you'll need to use javascript.
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Action Script 3 by email or at Adobe Forums
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.