Skip navigation
TAzMan_FR
Currently Being Moderated

Full screen application on Mac Os Lion

Dec 2, 2011 7:19 AM

Tags: #os_x_lion #air_3.0

Hi,

 

I am trying to develop a full screen application in AS3  / Air. This application must run on Mac Os X Lion plateform.

 

The fact is that when I launch the application on Lion , a start up window appear, then the application is going to full screen mode, but the launch window still appear in front of it.

This problem is for Lion only, as the application work well on Snow Leopard.

 

Here is the code i'am using :

 

Init of the app :

<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"

                                xmlns:s="library://ns.adobe.com/flex/spark"

                                xmlns:mx="library://ns.adobe.com/flex/mx"

                                showStatusBar="false"

                                applicationComplete="init()"

                                width="100%" height="100%"

>

 

Public function to initiate full screen


public function init():void

{    

     // some stuff before, nothing to bother with full screen


      this.stage.displayState = StageDisplayState.FULL_SCREEN; // fullscreen --

 

   

}

 

 

 

 

 

 

Any clue to bring the full screen in front or to reduce the launch window ?

 

regards,

 

Taz

 
Replies
  • Chris Campbell
    9,456 posts
    May 4, 2010
    Currently Being Moderated
    Dec 8, 2011 10:28 AM   in reply to TAzMan_FR

    Sorry for delayed response.  I actually tried this out the other day for you but must have been side tracked and didn't respond.  Unfortunately, I've been unable to reproduce this using Flash Builder 4.6 with the Flex 4.6.0 sdk (which includes AIR 3.1).  Would you be willing to send me your project and build .air file so I can try your stuff out?  Feel free to email me at ccampbel@adobe.com.

     

    Thanks,
    Chris

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 14, 2012 6:04 AM   in reply to TAzMan_FR

    I have the same problem here, and I found the renderMode direct didnt work on my computer.

     

    Thanks,

    Carlos

     
    |
    Mark as:
  • Chris Campbell
    9,456 posts
    May 4, 2010
    Currently Being Moderated
    Feb 14, 2012 10:59 AM   in reply to vamoss

    Hi Carlos,

    Can you send me (ccampbel@adobe.com) a sample project so I can try and reproduce this here?  What version of the runtime do you have installed and are you on 10.7.3?

     

    Thanks,

    Chris

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 27, 2012 9:28 AM   in reply to TAzMan_FR

    Hi there, i am usign Flex SDK 4.6 with Air 3.2 release candidate on OSX Lion 10.7.3 and i still have this problem too...

     

    I did manage to find a workaround that work only with air 3.2 :

     

    I wait for user mouse input before setting it to fullscreen and it works.


    But i still can't make it go fullscreen automatically, it will be hidden by the app window.

     

    One thing is weird, when i compile it in flash builder, i get this bug one time in 1000 compiles, but when it is installed as an air app on , it wont work at all.. unless i use the workaround stated earlier.

     

    Thanks

     
    |
    Mark as:
  • Chris Campbell
    9,456 posts
    May 4, 2010
    Currently Being Moderated
    Mar 30, 2012 6:48 PM   in reply to JimTheKing

    Jim,

    Could you please open a new bug report on this over at bugbase.adobe.com?  Please post back with the URL so that others affected can add their comments and votes.

     

    Thanks,

    Chris

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 14, 2012 9:09 AM   in reply to Chris Campbell
     
    |
    Mark as:
  • Currently Being Moderated
    Aug 10, 2012 3:47 AM   in reply to Chris Campbell

    any news on this?

     
    |
    Mark as:
  • Chris Campbell
    9,456 posts
    May 4, 2010
    Currently Being Moderated
    Aug 13, 2012 10:03 PM   in reply to bee_network

    I've asked around and was told that we can only reproduce this issue when debugging an AIR app using ADL, we were unable to reproduce this with a release version.  Is that in line with what you are experiencing?

     

    Thanks,

    Chris

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 13, 2012 11:26 PM   in reply to Chris Campbell

    I think its the other way round

     

    When running and application with ADL ( adl Demo-app.xml ) everything works fine.

    The problem is when packaging with ADT ( adt -package -storetype pkcs12 -keystore cert.pfx -target bundle Demo.app Demo-app.xml content ).

     

    Should I prepare a demo for you?

     

    Thanks,

    Mike

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 13, 2012 11:27 PM   in reply to bee_network

    Nearly forgot ... I tried workarounds with moving the window off screen but they do not work either ...

    We have to ship an application in September ... any chance to have this fixed by then?

     

    Thanks!

     
    |
    Mark as:
  • Chris Campbell
    9,456 posts
    May 4, 2010
    Currently Being Moderated
    Aug 14, 2012 12:44 AM   in reply to bee_network

    Hi Mike,

    Getting a demo added to the bug report would be great.  As for a released fix by September, I don't see it happening.  However, we might be able to discover a workaround.

     

    Thanks,

    Chris

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 14, 2012 1:33 AM   in reply to Chris Campbell

    Thanks for the update. I have sent you a demo download URL to ccampbel@adobe.com

     

    Cheers,

    Mike

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 27, 2012 6:48 AM   in reply to Chris Campbell

    Hi Chris,

     

    any news on this? Any timeframe? Any workaround?

     

    TIA,

    Mike

     
    |
    Mark as:
  • Chris Campbell
    9,456 posts
    May 4, 2010
    Currently Being Moderated
    Aug 27, 2012 3:08 PM   in reply to bee_network

    No workarounds that I know of yet.  I just read through the bug report and it's being worked on by one of our devs for an upcoming release.  I've requested info on a workaround if one is found.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 28, 2012 12:47 PM   in reply to Chris Campbell

    Hi there, I know how to circumvent this issue.

    Don't launch the app's bundle. Instead of that:

    cd /Applications/Foo.app/Contents/MacOS/;

    ./Foo

     

    If you still need to be able to launch this by double clicking a Finder's icon, wrap the stuff above w/ Automator.

    A second way would be a fake mouse.

    Further description: http://blog.jakota.de

     

    Regards,

    Martin

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 28, 2012 11:40 PM   in reply to planetexpress69

    Great this works! Thanks!

     

    In Automator create an Application -> add "Run AppleScript"

     

    on run {input, parameters}

         set a to (path to me)

         set p to POSIX path of a

         do shell script p & "../Foo.app/Contents/MacOS/Foo"

         return input

    end run

       

    Save the application in the same folder as Foo.app or adapt the path in the so shelll script command.

     

    Best,

    Mike

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 29, 2012 12:40 AM   in reply to bee_network

    Must have something to do with the environment when launching the app. Hopefully this is enough information for Adobe to fix it in a later version of the runtime... Spread the word!

     

    Martin

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 17, 2012 9:00 AM   in reply to planetexpress69

    Hi,

     

    I ve just started to build mac apps for AppStore and I am facing this issue with some of my apps. Did adobe announce a solution yet? I m using 3.5 AIR SDK and still have the app window shown in front of a FULLSCREEN app.

     

    As I m not a mac expert (the opposite is more accurate) I do not know how to make the above script work... I tried to copy it in the app Contents/MacOS/ folder with the appropriate naming, but cant make it work...

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 19, 2012 6:38 AM   in reply to hantouan112

    Anyone else still experiencing the above issue or have found a working solution?

    Thanx in advance.

     
    |
    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