« simple sql batch loader in air
» added to mxna

AIR, Flex

full screen vanishing act

03.30.08 | 1 Comment

I have come across a strange problem trying to make an AIR app, authored in Flex, go fullscreen.

First of all, I hit the problem of trying to use the “stage” reference of WindowedApplication in my creationComplete handler method. As John C. Bland II points out, “when creationComplete is called the stage object is null”. He suggests applicationComplete as a better event to use, as per Raghu’s post on a similar topic, and Wietse Veenstra’s helpful explanation of the order of Flex startup events.

All well and good, but I found when I tried to go fullscreen in an applicationComplete handler, there is no error, but my app goes completely invisible. I can see the app in the taskbar (on my crappy work Windows machine) but no actual app window on the screen.

Really weird. I was able to hack it up rather horribly (using a Timer object, if you must know the ugly truth) but I want to be able to do it properly. Perhaps there is some information needed to go fullscreen that is not available on applicationComplete, but is available later. Same problem was there on the first updateComplete event.

related

1 Comment

have your say

Add your comment below, or trackback from your own site. Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

:

:


« simple sql batch loader in air
» added to mxna
Close
E-mail It