Closing A Window When Flash Movie Ends
hi guys, I am trying to find out what is the proper actionscript code to close a window that a flash movie is currently playing in at the last frame?
Thanks!
FlashKit > Flash Help > Flash ActionScript
Posted on: 03-18-2003, 07:25 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Detect When Flash File Ends By Closing Browser Window
Okay, this one was hard to explain in the title.
What I want to do is know when a user hits another web address or closes the browser window so that I can write out the session ended information to a database. Is this possible? I write to the database when the swf file is started, and can write to it if I hit an end button within the swf file, but my concern is - what if someone doesn't hit the end button and just closes the browser. Can that be captured from flash or some other script?
Thanks for any help.
Close Window After Flash Movie Ends..how Do I Do This?
I am working in Flash MX....I have a flash presentation that I have prepared. The flash SWF file is a pop up that automatically pops open when the homepage opens. After the flash goes through once, I have stopped the movie so it does not loop.
What I want to happen next is to have that window close so that the homepage is showing. I do not want the user to have to close the window themselves. Can someone please help me out and tell me how to do this??
Thanks!
Closing The Window From Inside The Flash Movie
hey all,
I am trying to create a button.. that will close the javascript browser window that was launched(and contains the flash) much like it can be done using js. something along the lines of string += "mywindow.close"?
thanks to anyone that can provide some help!
Closing Html Window Using Javascript From Flash Movie
Hi-
Is there a way to close a new window using javascript that does not cause a dialog box to open saying "The web page you are viewing is trying to close the window. Do you want to close the window?"
Here is the code I use to close the window:
javascript:window.close()
Thanks!
2 Small Questions.. Action To Close Window When Movie Ends? And..
Hi.. for my flash intro, I want it to close automatically when it finishes. I looked for the action to do that but couldn't find it..
and the 2nd questions was that I have url's in the flash and when I click on them, it goes in the current browser, how do I make it go into another window, if possibly not having to make the words buttons, and keeping them text.
Thanks
Greg
Closing Window After A Movie
Hello all gurus. I am new to Actionscripting and was wondering if there is an action to close the window a Flash movie is playing in once it has run its course? Rather than looping it incessantly or having it stop and stare at the viewer. I would just like it to disappear. Any help would be greatly appreciated.
Thanks in advance,
Reeses
Unloading A Movie / Closing Window
hi,
i have a simple structure: a few buttons, each of them loads a different movie which is basically a box with some content and a close button.
all the movies have a little transition and use the midFrame script.
is there a way to get the close button to play the out transition and then unload the movie?
if i just do the transition and stop (with the movie being invisible), the other buttons will only load this one movie that the first button i pressed loads.
so... how can i close the current movie withough messing up the others?
thanks!
Unloading A Movie / Closing Window
hi,
i have a simple structure: a few buttons, each of them loads a different movie which is basically a box with some content and a close button.
all the movies have a little transition and use the midFrame script.
is there a way to get the close button to play the out transition and then unload the movie?
if i just do the transition and stop (with the movie being invisible), the other buttons will only load this one movie that the first button i pressed loads.
so... how can i close the current movie withough messing up the others?
thanks!
Closing A Flash Window (ANY HELP WELCOME)
I made a flash movie that I wish to make into an exe file. However I wish to be able to close the window when the movie has finished playing. As the movie openS a html application in a chromeless window.
How do I manage to close the initail movie window after opening the html application?
Do I use the close command?
Any help welcome as I am a bit stuck with it.
Regards,
Sam.
Closing A Window From Flash?
Hi,
Is there somebody knowing how to make a script for a button in a flash movie to close its own window (html).
Thanks!
CLosing A IE Flash Window
I made a popup with exact fit, and on my exit button i have the code:
on (release) {
getURL ("javascript:newWindow.close(); void(0);");
}
for the html i used "newWindow" to create the flash popup.
i used http://flash-db.com/PopUp/ before for flash 5. But now i have mx2k4. Can someone please tell me what im doing wrong?
Also, i want to make a site open up from my flash site in a new CENTERED window. I tried http://flash-db.com/PopUp/ for this too, however when it loads up http://sgi.board.dk3.com it is not centered.
Ugh, someone please rescue me from myself.
-nanascalala
Closing A Flash Window
Hiya
Gone to Flash 2004 MX and used the code for closing a flash window
on (press) {
fscommand ("quit")
}
But its not working. Works fine on Flash MX but seems to not be working anymore on 2004
Anyone know why?
Closing A Window In Flash
I need to make a button with the command to close a window. I have produced a selection of flash movies that open in a new window from the main title page and I need to make a button that closes the window down.
Any help would be appricated. I'm looking for the actionscript that does this when you click on the button.
thankyou!!
[F8] Closing A Flash Window
exscuse me for my experience in flash. A simple question (i hope), I would like to create a button in flash that the lets viewer (end-user) close the main scene. Thanks
Closing A Pop Window In Flash - Yes I Know, I Know...
Hey there,
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)
on (release) {
//customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = "http://www.blagh.com/pop-up.htm";
target_winName = "music";
width = 250;
height = 90;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 0;
resizable = 0;
//sends data back to the function
openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}
and the button to close the pop up is this:
on (release) {
getURL("javascript:window.close('/pop-up.htm');");
However, this closes the parent window and leaves the pop up open...
Have tried this in various ways but nothing seems to work??
any help VERY much appreciated...
cheers
Jain
Closing Flash Window
I'm creating a exe file out of my flash file I've made for a CD. I now want to put an exit button on my program but I don't know how or what the code is to close the .exe program. Please Help.
Thanx
Closing Window Within Flash MX
I just wanna know if it's possible and how :Let's say I have this Flash movie and I have some code with fscommand with makes the movie fullscreen as soon as you open it. I have a button that pops up the actual site; Should I pop open the swf from my server or the html doc? When I open up the html file from MY DOCUMENTS on my computer, it stays plain html, when I open up the swf, it opens up in fullscreen.
Anyways, after being in fullscreen mode, how can I make it so that if a button I made in Flash is pressed, it closes the screen. This way people won't have to press the Esc Button.
I am trying to find out how to do this because I'm making something for a friend.
- Thanks.
Closing A Pop Window In Flash - Yes I Know, I Know...
Hey there,
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)
on (release) {
//customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = "http://www.blagh.com/pop-up.htm";
target_winName = "music";
width = 250;
height = 90;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 0;
resizable = 0;
//sends data back to the function
openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}
and the button to close the pop up is this:
on (release) {
getURL("javascript:window.close('/pop-up.htm');");
However, this closes the parent window and leaves the pop up open...
Have tried this in various ways but nothing seems to work??
any help VERY much appreciated...
cheers
Jain
Closing A Window With Flash?
I have a popup that opens when i click a link on my main page. the popup is set to a size so that a flash document fills the entire popup. I would liek to be able to have a button at the end of the presentation that says "close window".
the popup is made with java so im assuming i may ahve to use some sort of java embedded inside flash to close it?
thanks a lot everyone
Closing Browser Window With Flash 4
I know how to do it using javascript with flash 5 but i only have the flash 4 version. Is there a way to do it with flash 4 because when i try it with the script that someone said in the Flash 5 forum. it didn't work.
btw, this was the script to put in the getURL action:
javaScript:window.close
Closing A Window Using Flash, But Not JavaScript?
Hello,
I am trying to close Broswer window using flash. When I use the javaScript it seems to work, but it prompts the user: "Do you want close this window" I do not want that. Is there another way I can do it so users will not get prompt?
Thanks
Closing A Browser Window Using Flash?
Well....how is it done? Basically...what's the javascript I need?
I have a movie here and I will have to provide a close button or novice computer users will have a breakdown.
- Matt
Closing A Javascript Window In Flash
is there a way to close a javascript window in flash???
i need a way to close a fullscreen flash window that is loaded in a javascript popup... any help would be great thanks
jonathan
Closing A Browser Window Within Flash
can any help please with the following..
on (release) {
//what code do i put here to close the browser in which the flash movie is embedded into.
}
thanks
mtt_dkyn
Closing A Window Through Flash MX Pro 2004
i guess my subject says it all....i have a window going fullscreen and i am providing a close window button through my flash movie....how do i get flash to close the window that has gone completely full screen?
FrankieB
ps this is MX Pro 2004
Can Flash Detect The Closing Of A Window?
Hi everybody
My problem is the following:
I have a page with a flash in it that opens a new window with a second flash in it.
Now what i'm trying to do is that whenever the second window is closed by the user, the swf in the first page calls a distant php script. Is that possible?
I hope that this is clear enough..
Thanks for the help
Closing And Html Window That Was Opened From Flash
I am using this code to open an HTML window from flash
on (release) {
getURL ("taps.htm", "_blank");
}
When I use window.close() as a button on the HTML page it comes up with a message box asking "are you sure you want to close this page"
Is there any way to get rid of this message?
Prob With Closing Window Thru Flash Out Of Frame...
my site has 2 frames, a navigation frame and a main frame. there is a swf in the navigation frame that includes a button that should close the whole window. when i open only the swf-file in my browser, it works properly. but placed in the frameset it dont. how can i solve this problem?
(i used "get URL" and then "javascript:window.close()")
thx
tim
Closing A Browser Window With A Flash Mx Button?
I am looking to spawn a new browser window to play my flash in and then have an "exit" button in flash that will close the entire window. I know how to make the button close the projector.exe but not the proper command to have it close a browser window. Probably a very simple solution, I appreciate any help, thank you in advance.
Opening & Closing Window Boxes Within Flash
Hi all
Im not too sure my Subject title really explained what I need to do but im gonna give it a go and hope that someone just pops by and has a look.
I have a flash movie of a car with some round circle buttons on some parts of the car that when clicked shows particular parts of the car in close-up.
Before I just used a roll over button and made a box appear when I the mouse rolled over but the of course it just disappeared when people came off the button.
What I would like now is that when the button it rolled over small box comes up within the movie and juststays there until you click the cross at the side of the box and then it just disappears and everything is teh same underneath. Kinda like a browser window but not if you get me.
Im not sure how to do this but it would be great to know how.
I hope you guys can help me, im learning all the tme with this.
Mark
Handle Browser Window Closing In Flash
Hey y´all!
Working on a flash poker game and I wonder if there is any way you can create a popup launcher that detects if the user tries to close the browser window. Right now the user can close the window and therefor lose the current round, isn´t very user friendly. So anyone know how to detect window close in flash?
Would be greatful for any suggestions!
Peace
Detect When Movie Clip Ends. Flash MX
Hey,
I have an object that I have set to spin and deaccelerate when the movie loads. What I want to do is carry on from there. The object is made to spin using action scrip, not a tween.
onClipEvent (enterFrame) {
if (rotDest>0) {
this._rotation += (rotDest)*.16;
rotDest--;
}
}
Im after a way to detect when the object has come to rest and then load the next scene. Is this possible? Its either that or I have to wait 206 frames for the animation to stop and then put in my gotoandplay statement. Im sure this method is classed as 'scruffy'!
Thanks in advance
Chris
[F8] Simple Flash Movie, Load Webpage After It Ends
I'm using CS3 now. I used to make these Flash movies before but it was almost 5 years ago. Now I'm going back to try again but it seemed harder. Anyway...
I just want my movie to load a webpage after the movie runs. I tried using getURL code, but I keep getting an error. Can anyone give me a complete procedure to make this work properly?
Thank you in advance.
Popup Window Closing To Main Window?
I can close the popup window of my flash intro, but I want to go to another html page in the main window of my site.
Can anyone help me? Thanks.
Closing Window - Javascript:window.close();
Hello all
I'm trying to use the getURL("javascript:window.close()"); code on a button to close my HTML window. But after I publish the file if I click on the button nothing happens.
Does anyone have any idea what is going wrong? Do I need to add another file to the folder where my SWF file sits? Or is there an Internet Explorer setting or something that is disabiling this?
Thanks
MMH
Closing Flash Movie
Hi. What I'm looking for is a script that attaches to a button that when pressed will eliminate the Flash movie AND the HTML page that it is embedded into. How do you do this? Thanks in advance...
Closing A Flash Movie
besides closing a flash movie with the 'x' button on the top right of the window. how else can a flash movie created into an exe file be entirely closed?
is there an actionscript for such a command?
such as:
on (release)
{
quitmovie();
}
or something like that. please advise, thanks.
Closing A Flash Movie
I am creating a flash movie and in the top right hand corner i want to put a close button. What is the action scrip that i apply to this specific button ? I have seen a few that shrink and do some cool stuff while closing, Any help I would appreciate it..
-Thanks
Brandon
:: Closing A Flash Movie ::
hey there..
I would like to know how to close a Flash Movie, in this case Im would like to exit the movie completely, (for business card CD).
Ive programmed some in DirectorMX, and there's the "quit" command. is there a Flash equivalent for this??
Thanks a million...
:: Matt ::
Closing Folders From A Flash 5 Movie
is it possible to close a program folder from inside a flash 5 movie?
this is wat i want to happen: a cd is inserted into the cd drive and a flash file runs via 'autorun'. if in 20 seconds a pass word is entered then nothing happens. if no password or the wrong password is entered then i want the folder titled 'm drive' (or wateva) to close. is this possible
From champinoman
p.s. yes i do realise that people can get around this if they go to explore but i still want it to do this.
Closing Movie Within Target (Flash 5)
Hi
I am working on having links that are movies that load within a targeted empty movie clip on my main stage, is there a way that I can have a button to close the particular movies so that my original stage with its background will show when the viewer is done looking at the links on my site?
I guess what I am trying to say is that each link is a load movie in an empty MC on my original stage, and I want to be able to close each linked movie if I want. Does this all make sense?
A Command For Closing A Flash Movie?
I am making a flash proyector file that needs to include a button that closes the window. I know theres a command for that and i've seen this before... but since its an executable, i havent been able to figure out this command.
thanx!
Closing A Flash Movie With A Button
Hi,
Can someone please help me. I need to create a button that will go on an ecard that I am making that will then close the flash window. I'm not sure how to do this and would be greatful of any advice.
Thanks a lot,
Rebecca.
|