Copy link to clipboard
Copied
I am using a dual monitor setup in development and using Windows 7. In Flash Builder, I have disabled html-template wrapper and my application launches in Flash Player. I want to set the launch location of Flash Player to my second monitor and it should be always in Maximized state.
Currently the problem is Flash Player launches at variable x,y co-ordinates and it is not in maximized state. Please help me to set it in Flash Builder or Flash Player, so that I don't have to waste my time in maximizing to see the screen and moving it to another monitor with different resolution.
Thx
Copy link to clipboard
Copied
Not sure whether it's possible using just Flash player. For AIR desktop projects, however, you can interrogate screens and do something like this:
[code]
protected function setupScreenDisplay():void {
var testOnSecondScreen:Boolean = true;
var a:Array = Screen.screens;
var s:Screen = testOnSecondScreen ? Screen.screens[Screen.screens.length-1] : Screen.mainScreen;
var r:Rectangle = s.visibleBounds;
nativeWindow.x = r.x;
nativeWindow.y = r.y;
nativeWindow.maximize();
}
[/code]
Copy link to clipboard
Copied
Thanks for your reply, I am not looking for Adobe AIR solution. My app runs in a Flash Player projector and I want to keep it on my second monitor screen, every time I try to launch or debug, it used to take a random x,y position on my first monitor screen.
Any solution to fix this ??
Copy link to clipboard
Copied
I googled, and see you've asked around on this one! Best I could locate, that you've probably already seen, is this: http://www.flashdevelop.org/community/viewtopic.php?f=7&t=6658
The core issue is that that functionality isn't strictly speaking available... I don't know whether there is an OS way to set preferences for opening location (I know IE opens windows in a place that has some reference to previous opening, for example) but I suspect you need to get hardcore which may be more effort than you want for this...
G