• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Listen for Full Screen mode

Participant ,
Apr 07, 2012 Apr 07, 2012

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?

TOPICS
ActionScript

Views

2.8K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Apr 07, 2012 Apr 07, 2012

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.

}

Votes

Translate

Translate
Community Expert ,
Apr 07, 2012 Apr 07, 2012

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.

}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 07, 2012 Apr 07, 2012

Copy link to clipboard

Copied

Great! Thanks. I will try it now.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 07, 2012 Apr 07, 2012

Copy link to clipboard

Copied

you're welcome.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 07, 2012 Apr 07, 2012

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 ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 07, 2012 Apr 07, 2012

Copy link to clipboard

Copied

use:

stage.scaleMode="noScale"

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 07, 2012 Apr 07, 2012

Copy link to clipboard

Copied

didnt work...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 07, 2012 Apr 07, 2012

Copy link to clipboard

Copied

it didn't work to do what?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 09, 2012 Apr 09, 2012

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 09, 2012 Apr 09, 2012

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 09, 2012 Apr 09, 2012

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines