Adobe AIR Non-Transparent Window Bugs Part 3: Native Controls Showing Up
UPDATE:
This has been fixed in AIR 2.5.
In my previous post, I showed how sometimes Windows would draw native controls on top of your non-transparent windows, as pictured here:
However, I could not figure out a sure way to reproduce it. Now I have.
Here's how you do it:
1. Make a new AIR application in Flex Builder.
2. In your-app.xml, set systemChrome to none and visible to true.
3. Prevent MINIMIZE and MAXIMIZE in your WindowedApplication:
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
<mx:Script>
<![CDATA[
private function init():void
{
nativeWindow.addEventListener(NativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGING, onDisplayStateChanging);
}
private function onDisplayStateChanging(event:NativeWindowDisplayStateEvent):void
{
if (event.afterDisplayState == NativeWindowDisplayState.MINIMIZED || event.afterDisplayState == NativeWindowDisplayState.MAXIMIZED)
{
event.preventDefault();
}
}
]]>
</mx:Script>
</mx:WindowedApplication>
4. Launch the app.
5. Click twice on the taskbar button (should do nothing).
6. Right-click on the taskbar button. Windows native system controls appear.
This is just a reliable way to make it happen every time. You don't have to do this exact thing to make them show up, they show up on their own randomly. I hope this example makes it easy for the AIR team to debug this issue.
I've exported the sample project with the above code. Click here to download.
3 Responses to Adobe AIR Non-Transparent Window Bugs Part 3: Native Controls Showing Up
Leave a Reply Cancel reply
plug.dj on twitter- Je suis dans la salle The Dubstep Den [wubwubwub] sur #plugdj. ♫ En Lecture: Delta Heavy - Get By (Official Video) http://t.co/AozfCZljTl
- I'm DJing in MCXBLAYoutubers on #plugdj ♫ Now playing: Sweaty Goals (Music Video) - BlacknWhite http://t.co/DgIKzJmDVE
- I'm DJing in MCXBLAYoutubers on #plugdj ♫ Now playing: Sweaty Goals (Music Video) - BlacknWhite http://t.co/8UevwnR39z
- Estou na sala z0era 100 fim do #plugdj http://t.co/RTjZRJqL3f
- @TheGamingLemon Brad, We got everyone in here!:D http://t.co/4gkMRVWpTu Join!:]
Archives
- February 2013
- June 2011
- April 2011
- March 2011
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- September 2009
- August 2009
- July 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- April 2007
- March 2007
- February 2007
- August 2006





Interesting. I think I see the same thing happen on CS4 applications as well, whenever they seize up.
Hi, Steven. Have you filed this bug so we can get it into the queue and take a look?
http://adobe.com/go/wish
Thanks,
Christian
I posted it in Adobe Bugs:
https://bugs.adobe.com/jira/browse/FP-3878