Skip navigation
TezS56
Currently Being Moderated

Listen for Full Screen mode

Apr 7, 2012 5:42 AM

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?

 
Replies
  • kglad
    72,357 posts
    Jul 21, 2002
    Currently Being Moderated
    Apr 7, 2012 6:43 AM   in reply to TezS56

    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.

    }

     
    |
    Mark as:
  • kglad
    72,357 posts
    Jul 21, 2002
    Currently Being Moderated
    Apr 7, 2012 9:26 AM   in reply to TezS56

    you're welcome.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 7, 2012 12:00 PM   in reply to kglad

    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 ?

     
    |
    Mark as:
  • kglad
    72,357 posts
    Jul 21, 2002
    Currently Being Moderated
    Apr 7, 2012 12:03 PM   in reply to mr.shumi

    use:

     

    stage.scaleMode="noScale"

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 7, 2012 12:07 PM   in reply to kglad

    didnt work...

     
    |
    Mark as:
  • kglad
    72,357 posts
    Jul 21, 2002
    Currently Being Moderated
    Apr 7, 2012 5:12 PM   in reply to mr.shumi

    it didn't work to do what?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 9, 2012 12:00 AM   in reply to kglad

    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

     
    |
    Mark as:
  • kglad
    72,357 posts
    Jul 21, 2002
    Currently Being Moderated
    Apr 9, 2012 8:05 AM   in reply to mr.shumi

    you should not try and control a user's browser window.  but, if you insist, you'll need to use javascript.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 9, 2012 10:46 AM   in reply to kglad

    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: Re: Listen for Full Screen mode 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: Re: Listen for Full Screen mode

         To unsubscribe from this thread, please visit the message page at Re: Listen for Full Screen mode. 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.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points