ActionScript 3.0 :: Close A Pop-up Window Without Closing The Whole Application?

Jun 1, 2011

i've used this code but it turns out that it closes the whole application:
 
import flash.system.fscommand;btn_exit.addEventListener(MouseEvent.CLICK, goExit);function goExit(evt:MouseEvent) {fscommand("quit");}

View 22 Replies


Similar Posts:


ActionScript 2.0 :: Function Invoked When Closing Projector Using The Default Window Close Button?

Apr 10, 2007

I am making a flash application and I am trying to find function to use when I press the close button of the projector window. I dont want to make a button that uses fscommand("quit") since this would be impractical knowing that a default close button on the window is already available. Anyway the purpose of the function is that when I close my application, a dialog box/message would appear as a reminder that some data has not yet been saved and give the user an option to save or quit the application.

View 2 Replies

ActionScript 2.0 :: Put A Close Button In The Window MC To Close The Window?

Mar 23, 2007

*let say i have a mc called A. it can call a MC with an instance name called window_btn.window can be drag and double click.i want to put a close button in the window MC to close the window.

how to call the close button in the MC?

View 14 Replies

IDE :: Way To Close The Movie W/o Closing Flash?

Sep 2, 2010

If my program has an infinite loop, I have to open task manager and close the Flash IDEthen reopen it. Is there a way to close the program and un-crash Flash?

View 1 Replies

Media Server :: NetConnection.close() Not Closing The Connection?

Jul 7, 2011

I'm creating a very, very basic AIR application which mainly just needs to check if a given FMS is up and running. To do that, I'm simply connecting to the FMS and after a successful connection, disconnecting to free up the connection slots. All is repeated at some interval. This is like a monitoring tool.
 
However, looking into the admin panel (Influxis) I can see that the number of active connections is ever growing, even though I'm calling close() on the NetConnection instance every time.
 
Also, adding a timer to trace the netConnection.connected value outputs always "true", after the close() function has been called.
 
I'm not creating any NetStreams, nothing.

View 6 Replies

ActionScript 3.0 :: Close The Music Player The Only The Site Is Closing?

Feb 19, 2012

I bought a template for my fiance's music band and also I bought I music player for Demo songs. I integrated it successfully into the website but unfortunately when I try to close the music player the only the site is closing, the music is going to continiue playing in background.

This is the site: soundsix. hu/ test --- menu point DEMO

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 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 3.0 :: Pop Up Window Closing

Oct 22, 2010

I made a custom class which shows a popup window in flash. What I want to do is to close it by clicking anywhere but not the window itself (and everything that is a button on the stage). I added this line of code

[Code]...

View 3 Replies

ActionScript 2.0 :: Closing A Pop Window..

Aug 27, 2004

Before anyone freaks out, yes I have searched and read up on this for hours now and I can't seem to be get it right... Simple..close a pop up window from flash. The code that opens the pop up has this code: (from kirupa)

[Code]...

View 2 Replies

ActionScript 3.0 :: Closing A Native Window

Jun 30, 2009

I'm trying to add an event listener to a window that pops up (to the whole window) that will close that window when clicked on. Basically it's your typical about window that would be found in any program by hitting help, then about this program. I am using no chrome on it so I'd like to just be able to click it and have it close.

On a less important note I'd like to center the window on the stage when it pops up. Right now I'm just using the x and w properties to get it close to center on my monitor but obviously that won't work for everyone. Below is the code I've tried. No luck whatsoever. Window pops up but stays up if I click it. Any help as always would be AMAZING!

[Code]...

View 10 Replies

ActionScript 3.0 :: Closing A Browser Window?

Feb 9, 2009

i am using the following code to close the my browser.

getURL("javascript:window.opener=self;window.close()");

The above code is not working in Flash player 10.

View 1 Replies

CS3 / AS.20 - Closing Browser Window From Flash?

Jun 15, 2009

I am currently trying to work out how to get Flash to close the browser window it is running in. I've done a simple Javascript test version which works fine.. But if I try and use:
ExternalInterface.call("closeMyWindow");
Functionality it does not. My simple Javascript version is cut and paste below and attached to this message.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL]"><html>
<head><title>Untitled</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="en" />
<meta name="description" content="" />
[Code] ....
Attachments: jsclose.html (630 bytes)

View 8 Replies

ActionScript 2.0 :: Closing The Browser Window With JS?

Jun 17, 2009

I think my original post on this was lost following from the hacking of the site, so I'll try again.

Hopefully someone out there will have an idea where I am going wrong with this: I am currently trying to close browser window that a flash movie is running. Due to the fact that the browser window is not a popup "child", using the normal "self.close()" or "window.close()" brings up the IE7+ prompt of "This page is trying to close this the window" when it is executed.

[Code]...

View 0 Replies

ActionScript 2.0 :: Closing A Popup Window?

Feb 7, 2003

how do you use javascript to close a popup window, from inside an html window in the swf file itself... ?

View 3 Replies

ActionScript 2.0 :: Sound And Closing A Pop Up Window?

Oct 30, 2006

I am having a problem with my sound. I have this toggle button I'm using to turn sound on and off. This is only working for me in the "home" or the first scene but not any of the others. I have the code for this in the "home" scene on the actions layer. Do I need to put the code on all scenes to make it work? If not, then what am I doing wrong?Also, in my "web" and "print" scenes, I have the smaller thumbnail images open up a pop up of a larger version of that image. I have a close button on each pop up, but it is not working. This is the code on the button:

close_btn.onRelease = function() {
_root.attachedMovie.unloadMovie();
};[code].....

View 1 Replies

ActionScript 2.0 :: Closing A Pop Window In Flash

Aug 27, 2004

Simple..close a pop up window from flash.[code]and the button to close the pop up is this:[code]However, this closes the parent window and leaves the pop up open.Have tried this in various ways but nothing seems to work??

View 2 Replies

ActionScript 3.0 :: Closing One Swf Inside Another Swf Using "close" Button Of Loaded Swf

Aug 26, 2010

What i am trying to do is..i am loading one swf into my current swf. The loaded swf has a close button like we have in windows. i have applied fscommand(quit) to the loaded swf. BUT when i am clicking the close button the whole application is getting closed. i want the swf to quit ONLY and not the whole application.

View 3 Replies

ActionScript 2.0 :: Flash8 : Closing The Firefox Window?

May 25, 2010

Currently I have the code for a button within the swf on our webpage:

Actionscript Code:
on(release){  getURL('javascript:window.close()');  getURL("MyUrl.com","_blank");}

close the web browser (including the swf document) and to open another webpage in a new browser. I have looked around and nothing seems to work with Firefox (because of java security). While I know a user could disable this java security, it is obviously not practical to ask every one who visits the site to so and was curious if there is a way to do this same operation with Firefox?

View 2 Replies

Closing Popup Window In Flash Player 10.0.32.18?

Aug 18, 2009

I'm a web designer but I just don't use a lot of Flash. I'm sure this will change as time goes on. For now, I'm still using an old version of Flash MX on my Mac - Flash MX version 6. But I don't think that has anything to do with the problem. I designed a flash animation for my wife's website back in 2004 and it has always worked perfectly up until installing the most recent Flash Player 10.0.32.18 just a few days ago. Here's the problem:On my wife's website, we have a special link called "view presentation". You click on that link and a smaller, separate window pops up. Inside of this pop up window is the flash animation (the actual swf file). In the HTML code for the pop up window, I have coded the following javascript:
 
function closeWin() {
if (document.images) {
self.close();

[code].....

View 2 Replies

ActionScript 3.0 :: Closing Browser Window In Which SWF Loaded

May 6, 2010

Using AS3, and without modifying the published HTML file, I want close the browser window (IE/Firefox) in which my SWF is playing on click of a button. This is not a pop-up window that the SWF is running in. It is the main browser window.

Here's my code:
btn_closeBrowser.addEventListener (MouseEvent.CLICK, close_Browser);
function close_Browser(event:MouseEvent):void{
var jscommand:String = "window.close();";
var req:URLRequest = new URLRequest("javascript:" + jscommand + " void(0);");
navigateToURL(req, "_self");}

Nothing happens when I click on btn_closeBrowser in IE or Firefox.

View 4 Replies

ActionScript 2.0 :: Closing A Browser Window In Firefox?

Jun 4, 2010

An old discussion - but still relevant: Does anyone know a script for a button making it able to close a Firefox browser window (on a mac)?

I have tried 1) variants of "javascript:window.close()" and 2) to make the button open a new window in itself, which immediately afterwards closes itself...

View 1 Replies

ActionScript 2.0 :: Closing Window / Page After Event

May 6, 2004

How to shutdown/close a html page in flash? I want my form-page to be closed after pressing the submit button.

View 2 Replies

ActionScript 2.0 :: Closing A Browser Window Using FScommand?

Oct 23, 2004

how does one close a browser window using the FSCommand. The normal 'quit' option works only closes a projector file. But i need to close a browser window.

I hear there is some technical javascript wizadry which allows one to do this.

View 3 Replies

ActionScript 2.0 :: Button For Closing Fullscreen Window

Jun 22, 2006

I want to create a button that closes down a fullscreen window. At the moment I have a button with the following AS.
on (release){
getURL("javascript:window.close();")
}
When I press the button It does nothing in IE and in MZ it says:
Macromedia has stopped a potentially safe operation

View 1 Replies

ActionScript 3.0 :: ExternalInterface.call Not Closing Window

Sep 9, 2011

I need to have button that closes the window. The window is a .php page, but it has the following javascript function:

Code:
function closeWindow(){
self.close();

[Code].....

Is there something about closing a window that does not work in AS? Or maybe is there a problem because it is a PHP file?

View 1 Replies

ActionScript 2.0 :: Closing Window / Page After Event?

May 6, 2004

Anyone knows how to shutdown/close a html page in flash?I want my form-page to be closed after pressing the submit button,

View 2 Replies

ActionScript 2.0 :: Closing A Browser Window Using FScommand

Oct 23, 2004

how does one close a browser window using the FSCommand. The normal 'quit' option works only closes a projector file. But i need to close a browser window.

View 3 Replies







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