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
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
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
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
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
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
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
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
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...
North America
Europe, Middle East and Africa
Asia Pacific