ActionScript 3.0 :: Detect If Window Is Active

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


Similar Posts:


Detect That The Flash Movie Projector Is Active Window?

Feb 4, 2011

How can detect that the flash movie projector is active window

View 1 Replies

ActionScript 1/2 :: Window Component - Keep Buttons From Being Active While The Popup Window Is Active?

Mar 26, 2009

I have a window component on my main timeline that gets called up on several instances. When the popup window appears, everything looks fine, except that the user can still click on links that are now behind the actual popup window itself. My question is how do I keep those buttons from being active while the popup window is active?

View 2 Replies

Actionscript 3 :: Air Native Window Active Window Change?

Oct 6, 2011

I have a Adobe Air app (AS3, not Flex) that has 2 windows. When I click away from them onto another desktop program, I get an "Deactivate" Event (as you would expect).When I click on say Window#1 I get an "Activate" Event (as you would expect).But when I go from Window#1 to Window#2, I get nothing. And I believe this is because the Air application is still the active program, Just a Different Window.

But I have the need to know when I go from 1 window to another.The horrible solutions I have come up with so far is to have an onEnterFrame and check if the current window is the active window. But I would much prefer to do it a much better way that such a hack.I have gone though Stage, NativeApplication and Native Window Events and none of them do what I need. Can anyone point me to another Event I may have overlooked?

View 1 Replies

Air - Flex Open Window Behind Active Window?

Jul 9, 2010

In Flex Air app, how do you open a window behind an active one?

I tried following and i can't seem to get it to work

[Code]...

With this code, I would expect window1 to open behind the main app window and, in 3 seconds, window2 would open behind window1. But if you execute this, window1 will open on top of the main window and window2 will open on top of window1 and the main app will retain focus. This seems like a bug in the Flex. If so is there any workaround for this problem?

View 2 Replies

Flex - Adobe AIR To Detect URL Of Active Browser/tab

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

Actionscript 3 :: Detect Clicks Outside Of A Window For A Multi-window AIR App In Flex?

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

Flex :: Detect Whether A Window Is Hidden (cmd-h) Vs Closed (cmd-w) - Mac

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

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

ActionScript 3.0 :: Detect If Mouse Is Outside Flash Window

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

ActionScript 2.0 :: Detect Browser Window Height Within Flash?

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

ActionScript 2.0 :: Detect Window Size, Scale Down If Needed?

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

ActionScript 3.0 :: Detect Mouse Leaving And Entering Flash Window?

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

ActionScript 3.0 :: Flash Detect When User Switches Focus To Another Window?

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

ActionScript 3.0 :: Detect If Movie Clip Is Visible Inside Browser Window?

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

Flex :: Indicating That A Window Is "active" Inside A Regular Flex (not AIR) Application?

Aug 25, 2011

I have an Flex 4 application (not AIR) which has some floating windows that act essentially as modeless dialogs.Right now, if two of these are open at once they function as siblings which are both active and whose controls are enabled for user interaction.I now need to maintain some notion of which one is "active" in the application. I don't want to /disable/ the non-active ones so as to blur them or prevent input on their controls.

I basically want to replicate basic OS window management: when you click or type into a control in one window it comes to the front and its title bar looks "active" and the others then look "inactive". Just like with a bunch of explorers in Windows.

View 2 Replies

ActionScript 2.0 :: Login - First Frame Is Not Active Frame The 2ed Is The Active And 3ed Is Blank So It Wont Show?

Jan 18, 2012

im working on my own site im lost though i copyed and pasted so much but i cant seem to figer somthing out.i have a members sys sitting on a few frames every thing works. but the profile button, i have a total of 11 buttons that are working. i coppyed them put them all on 1 frame with there own instances that contain 3 frames?the first frame is the not active frame the 2ed is the active and 3ed is blank so it wont show. so my login code at this point is

ActionScript Code:
//Button Functions
signupBtn.onRelease = function() {[code]...

View 0 Replies

ActionScript 3.0 :: Toggle_window - Window Opens And Closes Not By Clicking On The Button But On The Window Itself?

Jun 12, 2009

i would like that my window opens and closes (opens: scale out; closes: scale in) not by clicking on the button but on the window itself.here are 3 applications of mine (schuifwindow, scroll and fotoalbum).
 
Grtz,Jan the man
 
here are 3 applications of mine (schuifwindow, scroll and fotoalbum).
schuifwindow www.truevision.be/other/btn_home.flascroll www.truevision.be/other/scroll.flafotoalbum www.truevision.be/other/foto_album.fla only picture one (left up corner) has a X button (i dont want to use this button)

View 5 Replies

ActionScript 3.0 :: Creating Flash DVD - Put Video Window Playing Certain Amount Of Time Then Repeats Itself In Main Window?

Oct 20, 2011

I am preparing a presentation DVD... DVD will contain wmv video, user manual and another flash exe file... So DVD interface will contain three elements; user manual, a flash exe file and video.. Flash video window will be short-time video, playing like 5-10 seconds then repeats itself... My question is, how could I accomplish to put video window playing certain amount of time then repeats itself, in main window? I need as3 fla example, which could be so useful for me..

View 1 Replies

Flex :: Placing Popup Window In The Middle Of The Main Window

Mar 16, 2010

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.

View 3 Replies

Flex :: Reload Main Window's Variable In Popup Window?

Aug 12, 2011

How to access main window's variable from popup window.

I create a popup window in the main window, and pass variable "content" to this popup window as following [code]...

View 2 Replies

Flash :: POST To Opened Javascript Window And Have Close The Window

Nov 30, 2011

I created a Flash application that reads POST data from a form. A user clicks the button, and the data gets posted to the flash app in a new window (_blank). Now takes the data and then spins a wheel to give users a prize. If they don't win a message pops up letting them know they didn't win. If they don't win, clicking the OK button needs to close the browser window.

I've tried a number of solutions and it seems that the only way to get this done is to launch the window with javascript and then use ExternalInterface.call('window.close'); to close the window from within the Flash actionscript (3) because otherwise the window won't close (I've tried just using window.close and window.close() with no luck)

I understand how to launch a new window with javascript, but I don't know how to simultaneously launch and POST data to that window (the Flash application has to have the POST data. Is this the best solution? Is there a way to close a browser window easier than what I'm describing?[URL]

View 1 Replies

ActionScript 2.0 :: Close Pop-up Window -> Trigger Action In Parent Window?

Sep 25, 2009

I'm trying to create a pop up window in Flash which also fades the background window to 75% black. When the user closes the pop up window, I'd like for the parent window to un-fade back to normal. Is this possible? I can do the first half of it and make the background window fade to 75% black. The difficult thing is making it fade back to normal when the user closes the pop up window.My thoughts are that I need to attach some code to the browser's built in close window button. It might require some javascript or a fscommand. I'm not sure.

View 9 Replies

ActionScript 3.0 :: Resize Mess - Block The Window From Being Bigger Window

Mar 15, 2012

The problem is: i have a flash movie (*.swf) 1280w x 640h,, and & want to remove the resize function, i mean block the window from being bigger window. i actually set a noscale function that is working on content, but the problem is with the window..... my code for nonscale is now:

[Code]....

View 4 Replies

ActionScript 2.0 :: Flash Reload Parent Window + Close Window?

Mar 4, 2006

I have an asp page that will open a new asp page in a new window that contains a swf file with a button.hen the user clicks the button i want to close that window and reload the parent window.

View 9 Replies

ActionScript 2.0 :: New (controllable) Window - Put A Link In Movie That Will Close The Window?

Feb 6, 2003

ACTUALLY i just thought of another one so now i have two. sorry. hope you don't mind. i get sidetracked rather easily. before i start, a quick nota bene. i'm a complete newcomer to flash so my questions are very simpleminded. not much of a challenge i'm afraid.

1. can i put a link in my movie that will close the window?

2. can i put a link in my movie that will open a new window of a specific size, and without the menu-buttons of explorer?

View 10 Replies

ActionScript 2.0 :: Resizing The Window - Photos Will Popup In A Fullscreen Window

Apr 25, 2008

Go to [URL]. Click on "The Photos". It will pop up in a fullscreen window. Try resizing the window and you'll notice that the background is vector and it looks like the scale mode is set to "showAll". BUT, the photos look like they have a separate scale mode set to "noScale". They don't resize.

View 2 Replies

ActionScript 3.0 :: Link To Rather Open Up A Download Window Instead Of Just A New Browser Window?

Oct 30, 2009

i have a flash site that links to PDF's with the navigateToURL function which works etc But now i would like Link to rather open up a download window instead of just a new browser window?

View 3 Replies

Window Size - User To Be Able To Expand The Browser Window ?

Mar 30, 2009

i've made a flash movie in res 600 * 300, now i want to keep this res don't want the user to be able to expand the browser window or change the res or anything how do i do this?

View 9 Replies

ActionScript 3.0 :: NavigateToURL - Get The Link To Open In The Same Window Instead Of A New Window

Nov 18, 2009

I'm trying to get the link to open in the same window instead of a new window, it's currently set to _blank. I tried _top, _self, _parent. When it's set to anything other than _blank the link doesn't work.

[Code]....

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved