I'd like to open a window in my AIR/Flex application on a second monitor if it's available. Don't know how to go about it. Tried this:mySecondWindow.x = Capabilities.screenResolutionX;
But this only gets the size of the first monitor and if I try to assign a greater value, it switches to default 100px offset. Is there a proper approach to this? My native screen is maximized in "preinitialize" and then I open the second window on "applicationComplete".
The problem is the y position and x position is not at the left top of my monitor. it is varying when I change the dimension of the file. I also tried with stage.stageHeight and stage.stageWidth etc. but no reaction.
I want to write an application that monitor the USB port, and when something is connected should show the contents of the drive (image viewer) automatically.there is any way to do that with Flex/Flash directly?or i might program another application in C in order to monitor the USB port and then comunicate with the front-end application with sockets?
What is the reason Flash Builder 4's Network Monitor does not support applications that were created using pure ActionScript and Library projects? It seems to work only for Flex projects.
In Flex/ActionScript 3, is there a better way to monitor the date/time to determine if the date has changed to the next day by creating a timer that dispatches every minute?
My Flex application (SWF) initialization takes 25 second to load 1.6mb SWF in widescreen monitor. The same SWF loads pretty fast (3 Sec) in Flat panel monitor 1024x768 resolution. What is the reason for +/- in rendering speed , +/- in CPU utilization on different monitors , screen resolution.
I am querying a 3rd party web service and not all the data seems to be making it to the event handler. When I view the request/response in the Network Monitor I see a collection of data objects each containing two string variables (name, url) and two arrays (counts, breakdown). When the result handler receives the data and I view it in debug mode, the collection of data objects each only contains one string variable (name). What happened to the other string var (url) and both arrays (counts, breakdown)? what would cause this since it seems to becoming corrupt before it reaches the event handler but after it is received by the network? Is this most likely an IDE issue?
How do you set the position of an AS3 AIR Project window programmatically?It is simple to do with application descriptor, but I cannot get it to work through code.All research has lead me to stage.nativeWindow.x = 200; but this does not do anything for me.
The following has no effect: public function Main():void {
A simple question, "How can position my flash in the middle of the window browser."Now do I need to add an action sctipt to the site or it's something to do with publish sitting?
I don't know how to arrange the position of the chromeless window. I add the script below. Could you show me where and what I need to write to arrange the position of the window from left and top side.
The window opens almost at the center in my computer but I checked in other computers it opened at the top and work like a fullscreen. I want it control by myself.[cod]e...
There is an fscommand function to turn the flash movie into full screen. But is there a way to control where exactly the flash window opens on the desktop (and whether it is maximized - note. NOT full screened).
My client is complaining that whenever he opens the flash movie (exe) it is shifted to the right such that the X window close button is not visible. Obviously he can just drag the window to the left, but you know, you gotta always make your client happy. Is this possible without using an external application like zinc?
I make advance data grid to view tabulate data. Each row has icon. When user click that icon show extra data for the that row. I want show popup in my page center. I used PopUpManager.centerPopUp(panel); to do it. This is my code sample.
[Code]....
Now pop up show in center of hole page but not screen. When data grid have more data popup window is hide. I want show it center of screen. How can i do it. Can i set popup position manually?
I'm trying to write a XML file to save the position and size of the app window in it. I'm running into this error: TypeError: Error #1010: A term is undefined and has no properties. MainTimeline/setupWindow()[code]
I want to position a clip near the end of the browser window and to make it fixed there, no matter on which screen resolution my site is viewed. I've tried already doing it using the external movie with fscommand, as well as with Stage.align, but then it applies to all the loaded movies. The rest of the content should be centered.
am trying to have a moviclip on the top right corner of the flash movie no matter the size of the window like here.It works in the swf file but not in the html.The top right movieclip's position is set to
i'd like the contents of my swf to re-position itself in relation to the resize of any browser window with easing here's examples of what i.m aiming for only my swf is aligned top left }}} [URL]
I'm trying to place a popup window (TitleWindow) in the middle of the main application window. how do i set the coordinates of my popup window to be of the main application window? i tried the localToGlobal function but with no luck, I just can't get the main window x and y.
So I have this AIR app coded in flex where I have several floating native windows and what I want is to detect when a user clicks outside of a window so that I can close it. (I don't want to use the PopupManager Class and would want to use the native windows).
My question is, is there a way to detect a click outside of a spark window, or alternativley is there some root container/object which is a parent to all the native windows so that a click inside any native window would bubble up to it? (Apparently the stage object of the root windowed application is not that object since each window is not a child of the stage for the root application).
I have a window, the window I programmatically change the size of the window depending on the current view it is displaying. The user cannot resize the window them self, but they can maximize the window.
The problem is if the view is changed while it is maximized, the maximized window size changes, I do not want this, I want it to only change the size of the non-maximized window.
My first thought is to just check if the window is maximized, and if so do not resize it...but the issue there is then when it is restored at a different view then when it was maximized it will not restore to the new size it should be.