Any clues how this can be achieved? It needs to work on all resolutions .. is there any parent/stage object available to find out the resolution of the system?
相关问题
- Displaying two fullscreen windows on two monitors
- Can I embed a sqlite database in an Air applicatio
- flex: how to prevent PASTE (ctrl+V) in a flex3 tex
- Flex: Get self SWF file name?
- Get list of running processes, get active process
相关文章
- Trace on Chrome/Browser console
- Flash CS4 + SQLITE
- AIR - Resizing Native Window Proportionately
- Building an android library project with jar depen
- is there a way to access bluetooth on android via
- TouchEvent.TOUCH_BEGIN, onTouchBegin Freezes after
- Pause and resume download in flex?
- Does Flash Builder 4 now use AIR 2?
This is a 300x65 window positioned in the bottom right. You are looking for Screen.
To position to the center:
Another option is to create a transparent window, then maximise it, then position your window inside the transparent one, using standard bottom=0 right=0 properties.
The advantage is that maximise will take into account the windows task bar height, which could change depending on the users set up.
The disadvantage, is that the transparent window will look really ugly on systems that don't support transparency (some Linux builds).
I am also not sure how this works on OSX, you could integrate with Growl, or if on OSX do the window in a different way (DIY Growl).
Screen.mainScreen.visibleBounds takes the taskbar into account