Yevgeny Simkin
Yevgeny Simkin

Reputation: 28349

Launching AIR app in secondary monitor

Is there a mechanism by which an AIR application can manually display in whichever monitor I choose? I can look at the display list in Screen.screens, but I'm unclear on how to actually force the drawing of the app into one of those.

Upvotes: 0

Views: 162

Answers (1)

Joe Ward
Joe Ward

Reputation: 759

After you pick the screen that you want from the list provided by the Screen class, set the window x and y coordinates to something inside the bounds of that screen.

The origin of the virtual desktop space is at the top, left-hand corner of the "main" screen (however the OS defines main). Screens above and to the left have negative offsets.

Upvotes: 1

Related Questions