Issue With Flash/AIR AS3 Application Going Fullscreen on Launch (on MAC)?

Putting a ridiculously long delay on the fullscreen call (5000 milliseconds) seems to do the trick. I realized this when I launched the application and immediately started mashing the space bar (my fullscreen toggle key), which kept presenting me with the same issue until after 3 or 4 seconds, at which point the fullscreen began working properly.

Up vote 0 down vote favorite share g+ share fb share tw.

I've created an AIR application in Flash CS4 with AS3, and the application needs to start up as fullscreen. I put a slight delay on the fullscreen call to get around the fact that flash won't let you start an application in fullscreen. This works fine on windows.

However, on Mac, my application has an issue... It uses this code to go fullscreen on startup: var fullscreen_delay:Timer=new Timer(10,1);// delay to bypass flash's non-fullscreen-on-startup feature fullscreen_delay.start(); fullscreen_delay. AddEventListener(TimerEvent. TIMER_COMPLETE, function(){ stage.

DisplayState=StageDisplayState. FULL_SCREEN_INTERACTIVE; fullscreen_delay. RemoveEventListener(TimerEvent.

TIMER_COMPLETE,arguments. Callee); fullscreen_delay=null; }); The application successfully goes fullscreen, but leaves the window for the application sitting in front of the fullscreen view. Toggling in and out of fullscreen on keypress fixes the issue.

I thought that doing something like this: var fullscreen_delay:Timer=new Timer(10,1);// delay to bypass flash's non-fullscreen-on-startup feature fullscreen_delay.start(); fullscreen_delay. AddEventListener(TimerEvent. TIMER_COMPLETE, function(){ stage.

DisplayState=StageDisplayState. FULL_SCREEN_INTERACTIVE; fullscreen_delay. RemoveEventListener(TimerEvent.

TIMER_COMPLETE,arguments. Callee); fullscreen_delay=null; stage. DisplayState=StageDisplayState.

NORMAL; stage. DisplayState=StageDisplayState. FULL_SCREEN_INTERACTIVE; }); Or even delaying the extra StageDisplayState.

NORMAL; and `StageDisplayState. FULL_SCREEN_INTERACTIVE; by 100 milliseconds each would simulate the effect of the keypress toggle, and this provide a functional, albeit dirty, workaround to this problem. However, these things do not work.

Does anyone have any idea what is going on? EDIT Putting a ridiculously long delay on the fullscreen call (5000 milliseconds) seems to do the trick. I realized this when I launched the application and immediately started mashing the space bar (my fullscreen toggle key), which kept presenting me with the same issue until after 3 or 4 seconds, at which point the fullscreen began working properly.

Still, if anyone knows anything about this... please share. Flash actionscript-3 fullscreen flash-cs4 link|improve this question edited Dec 17 '11 at 18:08 asked Dec 17 '11 at 17:45JonathonG83611 100% accept rate.

Putting a ridiculously long delay on the fullscreen call (5000 milliseconds) seems to do the trick. I realized this when I launched the application and immediately started mashing the space bar (my fullscreen toggle key), which kept presenting me with the same issue until after 3 or 4 seconds, at which point the fullscreen began working properly. Still, if anyone knows anything about this... please share.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions