Monday, March 29, 2010

Initial window position on MacOs

I am developing an application that requires to show some notification windows when certain events occur. I did the notification windows using the mx:window element. In MS Windows they work perfectly and I set their initial position using the mx:window 'x' and 'y' property. But on MacOs the windows always appear on the center of the screen, no matter how I set their parameters, I've tried everything I can think of and I've searched on google and on AIR's documentation.

Anyone knows how to fix this so that my application can be cross platform? Any help would be really appreciated.

Initial window position on MacOs

Very weird.

The same mechanism works for me on windows and mac.

Initial window position on MacOs

That's weird indeed, I was starting to think it was an Air bug.

Does it work for you using the mx:window container or do you use a different one? Is there any other property that you change for this? Do you change anything on the properties file in order for this to work for you?.

Thanks for your answer Cesare


all the changes I make are via as3.

I use a window, full scree, transparent, x and y = 0. Therein I place my notification messages.

HTH.


That's what I was missing! trying with a window that initializes in fullscreen. Although on MacOs if I set it to fullscreen it hides the dock, however I tried setting the window as maximized and it now works perfectly! Thank you Cesare, I hadn't thought about that option before.

  • makeup video
  • No comments:

    Post a Comment