Flash :: Detect Switch From Adobe Air App To Another Window
Jul 18, 2011
How can I determine if someone switch to another window (say notepad) while keeping air app open behind, I was looking for a way to detect if user switch form air app to another.
View 1 Replies
Similar Posts:
Jan 23, 2010
I am working on a Flash app that is 900x700 pixels. When viewed in misc. browsers at 1024x768, the browser chrome causes robs too much of the vertical space and the app appears in a window with a vertical scrollbar. Unacceptable.
The flash app will be launched via a link emailed to the viewers.
I'd like to avoid resizing the flash app and am wondering if there's a way to do the following via javascript, with no clicks involved:maximize the current browser window remove current window address bar and tabs / switch browser to full screen view (equivalent to pressing F11).
An alternative would be to resize the flash app vertically to match the browser canvas height to avoid scrolling. This may cause the app to become unreadable, so not the best approach in my case.
UPDATE: Seems that browser resizing and autoswitch to full screen won't work and neither will the flash app auto resize. What is the best approach then? And, some users may have browsers with toolbars or open a small browser window.
The only idea I have is to use javascript and display a message to users with small browser windows to pres F11 manually. The audience is executes and some may not even know what an F11 means...
View 5 Replies
Mar 13, 2011
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).
View 1 Replies
Jul 28, 2011
This code work in flash, but when i try run using adobe air 2, the enter key is not detected, but instead ctrl+enter work. how to get this work? txtTLF is TLF TEXT EDITABLE
import flash.events.TextEvent;
txtTLF.addEventListener(TextEvent.TEXT_INPUT, teclado);
function teclado(e:TextEvent):void{
[code].....
View 1 Replies
Nov 5, 2010
I have a background which scroll's when the mouse is at the edge of the flash window - RTS style. If the mouse cursor goes outside the window I want it to stop scrolling, but flash reads the cursor position as the last place it was, when it was still within the flash window.I know I've done this before, but I can't at all remember how!Is there an event I can listen for or something similar?
View 4 Replies
Feb 4, 2011
How can detect that the flash movie projector is active window
View 1 Replies
Apr 21, 2011
I have a flash website which has the following dimensions:
width = 100% of browser window
height = 1500px
What I'm trying to do is have a movie clip with the instance name of 'msie' vertically and horizontally centred to the middle of the browser window (not just the stage).
The current code I'm using is:
msie._x = Stage.width / 2;
msie._y = Stage.height / 2;
This correctly centres the movieclip to the width of the browser window but because the height of the stage is 1500px, it positions it at 750px from the top instead of being vertically centred in the browser window.
how I can get this to work. I feel like all I need to is replace the word 'Stage.' with something else in the code.
View 9 Replies
Jan 22, 2012
I'm using Adobe Air 2.5 and would like to switch between the front and back camera on an Android device.
View 2 Replies
May 31, 2009
Is there a way to detect when a mouse leaves the stage (flash window) and when it comes back?
View 2 Replies
Jan 22, 2010
Can flash detect when the user switchs focus to another window?
If it can then is there any event that fires when it does?
View 2 Replies
Sep 26, 2011
I need to know the available screen space in my current AIR app, but when I use stage.nativeWindow.width and stage.nativeWindow.height, I get the size of the window including the title bar. I'd like to know the "inner size", so excluding the title bar. How do I do this?
View 1 Replies
Jul 15, 2009
I need to detect if running in ADL or not, I can't seem to fine an answer that is guaranteed...I found a couple posts online that say "this might work..." Is there a reliable way to check?
View 1 Replies
Nov 13, 2010
Using Adobe AIR + related technologies, is it possible to detect the URL of the active tab/window of the active browser?
For instance, if my user is surfing in IE8 on [URL]... can I retrieve that data for use in my Adobe AIR RIA?
View 1 Replies
Sep 27, 2010
Screen class in actionscript provides the latest total screen bounds and available screen bound, but doesn't allow to attach listener to listen for changes on runtime.
is there any way of detecting screen resolution changes on runtime, it is required to size the application whenever screen resolution is changed. e.g. in case when machine display is connected to projector/high resolution monitor and then switched back to normal.
View 1 Replies
Mar 26, 2012
I need to determine which connection type a device is using. Distinguishing between WIFI and 3G doesn't seem to be a problem on iOS (using the NetworkInfo ANE) and Android (using the native NetworkInfo class) but I've got no clue how to further distinguish between a fast (3G, 4G) and slow (EDGE) connection. Is there a way to do this with Adobe Air?
View 1 Replies
May 6, 2009
Is there a way for flash to detect what files are in a certain folder online with just a URL (ie "http://example.com/files") if the .swf file is stored on the same site?
View 1 Replies
May 15, 2009
My site is a Portfolio of other flashwebsites. All have sound. Because it becomes confusing to have all sounds playing at the same time I am trying to do one thing. I need to know if there is a EventListener that detects if the site window is active. If it is not the volume will be zero, if it is the volume will be 1.
View 6 Replies
Nov 1, 2010
"The SSL Certificate is not trusted." dialog occurs in Adobe AIR application. How can I detect this situation before it happens? (Actually I want my app to bypass the warning...) check the following code:
[Code]...
View 1 Replies
Feb 4, 2010
I'm developing an AIR application which uses multiple windows. I'm running into an issue where I want to open new windows (toaster notifications for example) when the primary application window is not visible, but the behavior is different depending on how the window is closed.
When a user hides all application windows with CMD-H, opening a new window causes all application windows to come back to the foreground (instead of just that new window, like I would expect). If the user closed a window with CMD-W, however, that window does not become visible when I open a new window.
Is there a way to either 1) tell when the user uses cmd-h to hide all windows OR 2) tell whether a window is hidden using cmd-h vs. closed cmd-w?
View 2 Replies
Feb 14, 2012
I have a SWF that's 1100 x 730 (odd size, I know). What I want to do is detect the window size (not screen resolution). If the width of the window is less than 1100, scale the SWF to fit the window. If the width of the window is 1100 or higher, do nothing.
View 0 Replies
Jan 10, 2011
For example, how would I draw an image outside of my window area, anywhere on the screen?
View 2 Replies
May 16, 2011
It's easy to check if movie clip is on the stage/display list.But how to detect if movie clip is inside the visible area of browser window?
View 1 Replies
Jul 28, 2011
Is there a way to take screenshot of the client's window using flex?
I found an example which uses java bridge, but i am looking for different solution.
View 1 Replies
Feb 21, 2012
I want to create an AIR application in which i need to show the notification that when AIR application is minimize then at some interval of time message shows from the system tray similar like giving information. I have visited this LINK, its a nice component but tutorial is not that much good as component. I need to create a component like that or source is available from this site so modification in this component will also be acceptable. EG: When you minimize the Yahoo Messenger and some one is sign-out or sign-in then it gives notification i want component similar like that.
View 1 Replies
Mar 7, 2012
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]
View 1 Replies
Jan 6, 2011
I have a flex 3 application with 2 titlewindows. When I compile it with the flex 4.1 sdk in flash builder, the titlewindows show up as mirror images of themselves with all text invisible (i.e alpha = 0).
View 1 Replies
Feb 16, 2011
How do I open a new window as hidden? (note the visible="false")
<s:Window xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
showStatusBar="false"
resizable="false"
visible="false">
If I declare a window this way, and then call this.open(false);, the window will quickly open and then hide, and then be reshown when I actually display it, I want to do this to be able to load content and fit the window to that size before showing it.
View 1 Replies
Feb 8, 2011
I'm on a macbook pro, osx 10.6, using CS4 Web Premium. I used to have an external monitor hooked up which had much higher resolution, so when using Adobe Media Encoder I'd click the Settings button on a video to get the Export Settings window, then stretched the Export Settings window to be the size of my external monitor. Now, I'm just using my laptop, and the export settings window does not have the resize buttons at top left to adjust it back to the size of my laptop, and the bottom third of the export settings window is getting cut off so I can't see the cancel/ok buttons etc.
I've tried re-installing media encoder (via reinstalling flash using the CDs) to try to 'reset' the window sizes, didn't fix the problem. If anyone knows of any other preferences or something I could delete to fix this,
View 14 Replies
Jul 26, 2010
I am developing an Adobe AIR application which uses both native windows and floating panels. Is is possible to enable the creation of a floating window instead of a native window when a JavaScript window.open() function is called?
It is required that all of the floating windows are contained within one native window, therefore the creation of more native windows is not suitable.
I have used a Custom HTMLHost class in order to enable the creation of a native window but I can't work out a way of creating a MDI window instead. I am using the flexMDI framework for my floating panel interface.
View 1 Replies
Nov 23, 2009
Now I set dragEnabled="true", dropEnabled="true" and dragMoveEnabled="true" to archive the ability to reorder my Items via Drag and Drop. But as soon as I start to Drag an Item the whole Application crashes with:
[Code]....
View 1 Replies