So you’ve built an AIR app, but want to position it on the desktop. Positioning a new window is pretty easy, but It may not be intuitively obvious how to position the main window of the application. After trying to set all manner of stage properties and x,y coordinates, it turns out that all you do is go into the Air Application and Installer Settings and then click on the settings button located next to advanced. In the window that comes up, look for initial window settings, and in my case, I choose zero for X and zero for Y to place my window in the top left of the desktop. You can also set widow heights and widths here and check up a whole host of other options.
Archive for the ‘Adobe Air’ Category
Adobe Air 1.0 – Full Screen –> No Keyboard Input
March 3, 2008So, you’ve downloaded and installed the official release of Adobe Air 1.0 and are really excited about the new “full screen” feature. We’ll I was really excited too. I wanted to build some games for my kids that I could run fullscreen and disable most of the keys on the keyboard. Sounded great in theory, and so I went off and learned how to full screen an app, which was pretty easy. I then popped in some code to trap the all the keys since so my little onces can’t get into too much trouble pounding on the keyboard.
When the app runs and is not in full screen, the keys get trapped no problem, but when I switched to fullscreen, suddenly, no keyboard access. Combing through the tech notes and blogs at Adobe I was shocked to find that this a known issue or rather decision made by adobe to “protect” naive users. Personally, fullscreen without keyboard access is like throwing the baby out with the bathwater. I hope this decision get reconsidered at some point. Until then, I switched over to making my app go as large as it can without going full screen, which still gives me my keyboard.