Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Closing A Window


Hi There,

I was wondering if actionscript had a property similar to the javascript window.close() property?

I have a flash movie that is in a popup and I wanted to know if I can have a button that closes the window down whene it's clicked?

Sean




FlashKit > Flash Help > Flash MX
Posted on: 10-14-2004, 09:35 PM


View Complete Forum Thread with Replies

Sponsored Links:

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.

View Replies !    View Related
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

View Replies !    View Related
Closing A Pop Up Window
Simple question and I know there is a simple answer.

I know how to make a window pop up but i need to make a window close after the movie has finished playing.

cheers

View Replies !    View Related
Closing A Window
Okay okay here it is....i have a link on an HTML page that opens a swf file....not html file.........up full screen. now i've been trying to make a button in the swf file that will close the screen.....how do i do that? or can i not do that instead i need to do something with closing the swf file? i really need help on this guys please help me out {=O)

View Replies !    View Related
Closing Window From The .fla ---------
I am making a CD presentation. I need to close the .fla from a button in the movie. can i use some sort of
" javascript:self.close() " code?.. keep in mind that i will not be using this with browser window. just the flash .fla projector file. thank you.

View Replies !    View Related
Closing A Pop Up Window
Hey there...

Easy one.

How do I get a button in my flash movie to close the browser window the flash piece is sitting in.

i.e Main window opens a file called 'popup.html' This popup.html file has my flash movie. I want the button in the flash movie to close the popup.html and go back to my original main window.

Cheers
Joe

View Replies !    View Related
Closing Window
Hi All...

Can someone help me with getting a button to close window. I was told the actioscript is like Javascript window.close but where do I put that? In Flash 5 there doesn't seem to be an action for this...

Please help...

Thanks
Hichame

View Replies !    View Related
Closing A Pop-Up Window
Hi everyone,
I am a flash 4.0 user, could someone please tell me what the command is in closing a pop up window assuming that there is a button called: Close Window.

Thanks!

View Replies !    View Related
Closing A Window
I need a button in my movie to close the pop-up window the movie appears in. What script should I use (not fscommand)

Thanks

View Replies !    View Related
Closing A Window
I need a button in my movie to close the pop-up window the movie appears in. What script should I use (not fscommand)

Thanks

View Replies !    View Related
Closing A Window
It's probably been asked before, but I need to make a "QUIT" button that will close the window being viewed. This may be a simple process, but I've looked all over, and haven't been able to find a way.
Thanks.

View Replies !    View Related
Closing The Window
I have a window with a flash movie in it. I have so info that i am posting to a php page.
on the submit button in flash i have a getUrl with a post.
How can i close the window that contains the flash after it has posted the variables??

View Replies !    View Related
Closing Pop-up Window
Hi! I have the code to make a pop-window, but I am looking for the script on closing it with a flash button. I have already checked out moock's website and found it confusing. Would appreciate any help.
Regards,
CityKitty

View Replies !    View Related
Closing Window
hi there.. .

i need help with a very simple flash bit of actionscript! i have a pop up window in html that contains a flash movie, within that movie is a button, 'close window', upon clicking this i want the pop up window that contains the flash movie to close.. . could someone please help?

many thanks in advance.. .

tasviN

View Replies !    View Related
Window Closing Itself
Quick question.
I have a main movie, with buttons that load an external movie.
I want to create a button in the external movies that can close itself.

Thanks!!

View Replies !    View Related
Closing Window
hello there i have a question im opening a popup window with a flash animation i whant that at the end of the animation it close automaticly.......

how can i do it, what action do i have too put on the las frame.

thanks

View Replies !    View Related
Closing Pop Up Window
Hi there,

I have a game which is runing on the Internet, in a
pop-up window from a website. When someone finish playing, on exit button I have to put some "close browser window" command", so the only window that is open is the main one.

Do I use java script in html page or can it be done from Flash5?

Thanks

View Replies !    View Related
Closing Window
Hi!
Can anyone tell me, how to get rid of "The web page you are viewing is trying to close the window. Do you want to close this window?" when I am trying to do so?
(with getURL("javascript:self.close();");)

View Replies !    View Related
Closing A Window
Ok, so I have a movie clip titled parkLodge and it is a window with a close button. When the close button is it I want it to do just that. Shouldnt there be a way to unload this movie clip? And the same for the button the user pushes to open it. How do you code that? Once again I assumed loadMovieclip pardLodge. Nope. Can you help?

View Replies !    View Related
Closing A Window...
Ok, here's the scenario:

I have a flash movie that loads in a pop up window. I want a close button in that flash movie that will close the pop-up window. Anyone got any ideas?

Cheers,

View Replies !    View Related
Closing A Window
Hi,
Is there a function or some way in Flash MX to close the window automatically when the user click a button or when the timeline reaches a certain frame.
I don't want the user to click the X on the top of the window to close the window, but I want it to automatically close by itself for a giving condition.

Thanks,
Syed

View Replies !    View Related
Closing Window
When I open a file in other window (get url,_blank) what script should i put on the button which is supposed to close this new window?? Button is placed in new window itself. If this Question sounds dumb, bear with it but plz answer.

View Replies !    View Related
Closing Window?
Hi,

Some body know the script for a button to close its own window (html).

Thanks!

View Replies !    View Related
Window Not Closing.
I have made my own pop up windows that have min and max buttons on them, I am loading each window into a container on level0. My problem is that when these windows are loaded into the container the min and max buttons do not seem to work. Where as they worked previous to this when I was just loading them into level 10 and also work when I test the .swf singly(without loading into the container). What I am wondering is, do I have to target these popups in a diffrent way than I did before?

View Replies !    View Related
Closing Window
Hi,

I've used the following code on a button to open a new window:

on(release){
GetURL("bob.swf", "_blank"); // Opens bob.swf in a new window
}

Nice, the above code works.

Next i used the following code on a button to close the window:

on(release){
getURL("java script:window.close()");
}

The above code given to me does not work to close the window.

Please can anyone give me the correct code to close the window, its driving me nuts!

Cheers!

kkhans

View Replies !    View Related
Closing Window
Hi,

I've used the following code on a button to open a new window:

on(release){
GetURL("bob.swf", "_blank"); // Opens bob.swf in a new window
}

Nice, the above code works.

please can anyone give me the correct code to close the window using a button, its driving me nuts!

Cheers!

kkhans

View Replies !    View Related
Closing Window
Hi,

I've used the following code on a button to open a new window:

on(release){
GetURL("bob.swf", "_blank"); // Opens bob.swf in a new window
}

Nice, the above code works.

please can anyone give me the correct code to close the window using a button, its driving me nuts!

Cheers!

kkhans

View Replies !    View Related
Closing Window
how do I code a button to close the swf file?

View Replies !    View Related
Closing Window After Another One Pop's-up
hello!!!

can i automatically close a window after pressing a button which causes a pop-up of another window?

or is it possible to define the size of a window without pop-up?
I'd like to have a start window with a defined window size and the ability to pop up windows from this start window

hope you understand what i mean and can help me

thx

View Replies !    View Related
Closing Window
...i don't know how to write a command to close projector window when I click my close button (for interacitve cd)...

View Replies !    View Related
Closing A Window
I've made a site in which opens in the browser, the user clicks enter and that window closes and a popup window of set size opens. This works ok in IE, in Safari the first window doesn't close and the popup has scrolls unless the window is dragged open a bit, and in Netscape it's OK except the first window doesn't close. Is there different code to go in for each browser. I've just realised this is an html problem, but would appreciate any help.

View Replies !    View Related
Closing The Window
I'm sure this is an easy question for most of you but since I'm new to Flash I haven't been able to figure it out yet.

What action do I need on my exit button to alllow the user close the window? In other words, when they click the exit button the window the flash file was playing in goes away.
Thanks!

View Replies !    View Related
[F8] Closing A Window
Hi, If I use attachMovie to load a new window, what should I use to unload it? Could I just use the _visible = false property??

View Replies !    View Related
Closing Swf Window - AS3
Hey /wave

I have been searching the web for hours trying to find the right code for AS3. So I'm hoping you can help me to get the right piece of code.

So I have a background element which I press button and it loads a swf on top of the original swf. The one which loads is a child and I have a 'X' button which I want to close and I have no idea what the code is. Once the 'X' button is on say a mouse down it closes the swf and you can still see the original which is below it.

I hope I have explained it so you can understand me

Thanks for the help.

View Replies !    View Related
Closing A Window
this is probably a really simple code, (it might be javascript i dunno)... but i want a simple 'X' button that will close my window when the user clicks it.
what code will be applied to the button?


cheers peeps

cal

View Replies !    View Related
Closing A Pop Up Window?
I have a centered pop up window and want to put a button on it, to close it.
Even though there is always the built-in button - for some reason people still want a 'handmade' one.

I can do this in html/dreamweaver. but is it possible from inside flash?
thanks for any help.
max

View Replies !    View Related
Closing A Window
--------------------------------------------------------------------------------

this is probably a really simple code, (it might be javascript i dunno)... but i want a simple 'X' button that will close my window when the user clicks it.
what code will be applied to the button?


cheers peeps

cal

--------------------------------------------------------------------------------

View Replies !    View Related
Closing Window
Hai

Anybody knows the actionscript for closing window in flash.

with regards
nazam

View Replies !    View Related
Closing Window
Hello,
I am a newbie to flash and want to compliment you on this great site it has been a big help to me. Now I have a question that I can't find an answer to on this site.

I am working on a website that is part flash and part html only no flash.

I have an entry page where the user can choose flash or html. The entry page's window is "main2".

When the user clicks on the flash entrance a borderless window named "main" is opened where all the flash pages go....there are 5 pages to view.

I also have text links on the bottom where the user can go to the html part of the site that loads in the initial window "main2".

1st question is how can I change the focus of the windows so if the user clicks a page that loads in the "main2" window it is on top of the borderless window.

2nd question is how would I code it so once my last flash page is viewed the user can close that window by clicking a button....instead of the X in the top corner being the only way to close it.

WHeh...any help would be much appreciated.
Thanks
Aflasher

View Replies !    View Related
Closing A Pop Up Window?
I have a centered pop up window and want to put a button on it, to close it.
Even though there is always the built-in button - for some reason people still want a 'handmade' one.

I can do this in html/dreamweaver. but is it possible from inside flash?
thanks for any help.
max

View Replies !    View Related
Closing A Window
--------------------------------------------------------------------------------

this is probably a really simple code, (it might be javascript i dunno)... but i want a simple 'X' button that will close my window when the user clicks it.
what code will be applied to the button?


cheers peeps

cal

--------------------------------------------------------------------------------

View Replies !    View Related
Help Please Closing Window ?
Hello all my first post so hello all

Im having trouble getting my flash mx window to close ,

in my application I open a page by clicking a button but when i tryto close by clicking a button on the opened page , I cant get the code , I tried window.close() but i get the error must be exported in flash 5 to work , I want to keep it mx not 5 , can anyone help

cheers n ta loads

coz

View Replies !    View Related
Closing A Window.
How do i make a button close my HTML?

i tried

on (release) {
getURL("
get url:{java script: window.close()"
}


no luck though....thanks for the help.

View Replies !    View Related
AS For Closing A Window
ANyone know the AS that would go on a button that will close the page thats open? and also anyone know the AS that will create a scroll bar if someones monitor is too small for a page that pops up (maybe even a window resize code). thanks

View Replies !    View Related
Closing Browser Window
I have a pretty easy question i hope.

I'm trying to make a simple flash application that will open and close the browser window.

To open a URL is easy like

getURL ("http://www.ect");

but how do I close it, say in frame 30?


basically what this application will do is constantly open and close the same URL..that's it


any thoughts on how I can acheive this??

thanks in advance Steve

View Replies !    View Related
Closing HTML Pop Up Window
Hi there
does anyone know how to close a html pop up window?

I've used this script on a button:
on (release) {
getURL ("Javascript:close.window();");
}


but it doesnt seem to work.

Thanks in advance.

View Replies !    View Related
When Closing A Browser Window .....
Just a thought, but when a user closes the browser, is it possible to display a "thankyou".swf on a timer that will close the browser in a certain amount of time (5 secs).
I've got the timer and the image I want displayed, but havn't a clue about closing the browser.
Also do you think it's a waste of time to do this as it would be infuriating to the user.

Cheers for your time,

vglcrew

View Replies !    View Related
Closing Browser Window
How do I make an exit button to close the entire browser window that the swf file originally opened into?

View Replies !    View Related
Closing A Window Blues
I know this question is getting old but I checked the archives and didnt see anything about my specific problem.

<script>
<!--
window.open("mapper.html","MAPPER","fullscreen=yes ","scrollbars=no")
window.close()
//-->
</script>

I want a fullscreen window to open up and the window that opens it to close. However, when I run this code IE brings up this annoying box that asks whether I want to close the window or not... how can I avoid that?

View Replies !    View Related
Closing A Projector Window
does anyone know the proper script to tell a mac system to close the projector broser window?
Very important for my quit button.

View Replies !    View Related
Closing A Window Using Actionscript
Hi all,
Does anyone know how to close a window containing a Flash movie using actionscript? If not then calling a Javascript routine from flash.

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved