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




Close Flash Player Window/projector...



Can u make a button close the flash/projector window? Like a close button? Ive made the button, but can't find the code to make it close the SWF/EXE...THANKS GUYS!!!



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


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

[MX] Closing Flash Player Or Window Projector Player
I know this is pure lazy deal. Is there a script that at the end of the movie clip or slide show it automatic close flash player or close Window Projector?

Close Flash Player Window
Hey guys,
does anybody know how to close flash player window? I want to be able to exit from the flash player on(relese). Thanks

Close Flash Player Window With Exit Button
I'm developing a presentation in flash 8 and I have a button that needs to close the window of the application when it is pressed.
This is the code that I'm using, but it doesn't work:
on (release) {
     getURL("javascript:window.opener=self;window.close();");
}
All it does is open a window in IE which immediately closes itself.

Thanks in advance.

Code To Close A Projector Window From A Button?
what would be the code to put on a button to close a projector window?

thanks

Alert Window On Projector Close & On Button
Hi,

I've been looking for a solution to my query on the forum but cannot seem to find it, apologies if I'm asking something deadly simple...

What do I need to do if I want a alert window in the library with instance name alert_mc (Flash 8 window component) to pop up when users press close (projector) or when they press a button?

Gabs

How To Close Projector Window (Clueless Newbie Alert)
Hi everyone,

I'm new here but hopefully I will become a regular.

I've been tearing my hair out with what is probably a really SIMPLE problem, but the thing is I have only been using Flash since 2 months ago so I am a clueless newbie.

I've made a splash screen for a CD. When the user clicks a button it launches an external executable to install something. This is a HUGE file so the gap between clicking the button and it appearing on screen is quite big.

In the meantime I make the text on the button change to "Loading, please wait" but then I need the projector to wait 20 seconds and then quit to desktop.

I've managed to get everything working except for the part where it quits to desktop! What is the single command to make the projector quit when the timeline runs over it? (Not by pressing a button, I know how to do that)

THANK YOU THANK YOU whoever saves me!

Keira

How To Close Projector Window (Clueless Newbie Alert)
Hi everyone,

I'm new here but hopefully I will become a regular.

I've been tearing my hair out with what is probably a really SIMPLE problem, but the thing is I have only been using Flash since 2 months ago so I am a clueless newbie.

I've made a splash screen for a CD. When the user clicks a button it launches an external executable to install something. This is a HUGE file so the gap between clicking the button and it appearing on screen is quite big.

In the meantime I make the text on the button change to "Loading, please wait" but then I need the projector to wait 20 seconds and then quit to desktop.

I've managed to get everything working except for the part where it quits to desktop! What is the single command to make the projector quit when the timeline runs over it? (Not by pressing a button, I know how to do that)

THANK YOU THANK YOU whoever saves me!

Keira

How To Remove Flash Player Window When Running Projector Movie
I am working on a Flash CD-rom and I would like to know how I can remove this window frame on my projector movie(Flash player window containing file, view, contol, help menu).

Function Invoked When Closing Projector Using The Default Window Close Button
Hello guys! I am just having some little problem in dealing with this.

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. I would appreciate any help. I tried
searching and I can not find any third party software that can do such
task. Thanks in advance.

Creating A Close Button, To Close Flash Player
Hello everyone,

IS there any actionscript available to close the flash player???

to insert into a button???


Thanks

How Do Close A Flash Player Without Using A Close Button?
Can you tell me how to launch a Flash video after/as the home page loads and then make the player disappear after the video has finished playing without using a close button?

Here’s an example where the player remains after the video has played. - http://www.hansenauto.com/

Do you have any design (positioning) suggestions on how to accomplish this task?

Close.window Script In Flash Button Quits My Browser Window Or Crashes System
Can somebody please help me?
I have a javascript attached to a button in a .swf file to close the browser window it is in.
The code which was given to me yesterday by senocular is

on(press){
getURL("javascript:window.close()")
}
__

however if you try it IE will unexpectedly quit or bomb my computer.
I tried it in Netscape and it didn't crash.

You can refer to my site http://www.valdesdesign.com
after intro go to print button and then to editorial button.
Editorial opens new window with editorial.swf inside. Click on top right button to close window and see what happens.
Is there something I'm doing wrong? Please help me.
Thanks

Disable Close Buttonof The Flash Projector
Does anybody knows how to disable the close button ('X') at the the top right of the flash projector window. I don't want the user to close my flash program while it is running. Thanks in advanced.

Flash Reload Parent Window + Close Window
Hi i got a quesiton.

I have an asp page that will open a new asp page in a new window that contains a swf file with a button.

When the user clicks the button i want to close that window and reload the parent window. Any ideas on how to achieve this in flash ?

Thanks

Flash Exit Button That Will Close A Director Projector
Is it possible to add a quit button within Flash Mx that so when I import the whole presentation into Director 8.5 it will quit the projector?

Thanks

Flash Quit Button That Will Close A Director Projector
Is it possible to add a quit button within Flash Mx that so when I import the whole presentation into Director 8.5 it will quit the projector?

Thanks

Popup Window, Then Pop Another And Close At The Same Time, How To Close?
Hello everyone!!!

Well, i am trying to make a button that first opens a popup and then it close its own window...


iahace the code for the first pop up opener, but cant make it work for the "autoclose window"

this is the script in the button




on (press) {
getURL("javascript:NewWindow=window.open('encuesta .html','Stilegno','width=550,height=450,toolbar=No ,location=No,scrollbars=No,status=No,resizable=No, fullscreen=No');NewWindow.focus();void(0);");
}

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


Any Idea?


Thanks!!!

Flash Player 10 (and 9) Causes IE To Close
I'm not a programmer. My husband just wants to work the jigsaw puzzle. With both flash 9 and the newer version 10, we get a message that an error has been encountered and IE must close and it is always flash*.ocx causing the problem. Sometimes it is so bad that it closes IE before you can open tools and disable it. Yes, we've gotten to that. When he wants to play on my pc he has to enable flash and then disable it once he is done. And of course, there are so many things I want to do that you need flash for. Surely, there is something I can do to keep this from happening. I was hoping with v10 that this problem would go away but no such luck!

Close Flash Window - How To Do?
Hello to everybody and thanks for reading my question.
I have a flash animation opened in a popu up window (without any browser buttons). I want to put on the flash movie a button that can close this flash window.
What is the script for this.

Thank you very much for help,
Bogdan

Close A Window W/ Flash
I cant figure out how to close the flash window from within flash. Ive looked at tutorials, but nothing going.

Anyone help me out on the code?

Thanks,
~DW~

Close A Window From Within Flash
I am not getting any javascript results when calling a function from the
getURL(javascript:close())

Is there any other configurations I should have in the flash file?
Help me please!!!!!

Thanks!!!!!

Close Flash Window
i have a standard flash window which basically has one button. I would want the flash window to close when i click the button.

I have tried many codes from online but they all seem to relate to the frame in html based.

i was wondering if any of you guys can help me out.

p.s the flash frame is non-web based (non html), runs from the computer

[F8] Close Flash Window
I have a flash pop-up that is opening within a html file, within the pop-up there are many links that then get loaded in the first window and I would like the pop-up to close when this happens.

This is the code I have used to get the links to open in the original window.


PHP Code:



on(press){
    getURL("javascript:window.opener.location = 'http://minchinburycars.carcity.com.au/stocklist.php?groupid=154&clientno=8452'");
}




How do I go about getting the pop-up to close? I have tried a few different methods to no avail.

I need to get this done ASAP so your help is much appreciated!

Flash Pop Up Window. How Do I Close?
I have a flash pop-up movie clip that I would like to show when the user hovers over a button. The only problem is that once you hover over the button, the pop clip up doesn't go away. How can I make this pop up clip dissappear on (rollOut) ?? I don't want to resort to using a close button on this particular clip.

I'm still new to Actionscript and below is the script used to open the clip.


on (rollOver) {
this.attachMovie("brochureClip", "window", 0);
window._x = 430;
window._y = 360;
}


Thanks in advance!

Close Window From Flash
anyone care to post the code used in flash and the one needed in the document to close the window.
can be done with javascript and fscommand or what ever its called right?

Thanks

//VoS

IE Window Trying To Close Itself FLASH And ASP
Hello,

I created a form in Flash 8 as well as an ASP page. They work great but, for some reason, in IE, when you hit submit, a blank page comes up and says "this window is trying to close itself"

The information is sent but is there a work around in either my AS or ASP to get rid of this annoying window?

This is my AS:


// -------------------<send form LoadVars>------------------- \
var gatherForm:LoadVars = new LoadVars();

function sendForm() {
gatherForm.visitor_date = contactForm.userDate.text;
gatherForm.visitor_name = contactForm.userName.text;
gatherForm.visitor_relation = contactForm.userRelation.text;
gatherForm.visitor_street = contactForm.userStreet.text;
gatherForm.visitor_city = contactForm.userCity.text;
gatherForm.visitor_state = contactForm.userState.text;
gatherForm.visitor_zip = contactForm.userZip.text;
gatherForm.visitor_phone = contactForm.userPhone.text;
gatherForm.visitor_email = contactForm.userEmail.text;
gatherForm.visitor_startLocation = contactForm.userStartLocation.text;
gatherForm.visitor_ceremonyLocation = contactForm.userCeremonyLocation.text;
gatherForm.visitor_ceremonyTime = contactForm.userCeremonyTime.text;
gatherForm.visitor_receptionLocation = contactForm.userReceptionLocation.text;
gatherForm.visitor_receptionTime = contactForm.userReceptionTime.text;
gatherForm.visitor_vehicleUsedFor = contactForm.userVehicleUsedFor.text;
gatherForm.visitor_vehicleType = contactForm.userVehicleType.text;
gatherForm.visitor_other = contactForm.userOther.text;

gatherForm.send("contact.asp", "POST");
}
// -------------------</send form LoadVars>------------------- \

_global.style.setStyle("fontFamily", "Times");
_global.style.setStyle("fontSize", 12);
_global.style.setStyle("color", 0x000000);


//--------------------<submit button AS>---------------------\


// onRelease
this.contactForm.submitBtn.onRelease = function() {
if (contactForm.userDate.text == "" || contactForm.userName.text == "" || contactForm.userPhone.text == "" || contactForm.userEmail.text == "" || contactForm.userVehicleType.text == "") {
gotoAndStop("error");
} else {
sendForm();
gotoAndStop("correct");
}

}

//--------------------</submit button AS>---------------------\

Any help would be great appreciated. Thanks so much! I can attach my ASP file if that is where the solution is.

Flash 8 JS Close Window
getURL ("javascript:self.close()");

isn't working in Flash 8...

I know there is new security stuff in 8...

any ideas???

Close Qt Player From Flash Track?
Hey everyone,

Is it possible to have the qt player close from some actionscript in the flash track? I've been trying all sorts of things like quit; and fscommands but nothing seems to work. I'd also like to avoid having to use another program like Livestage pro, there should be a way of doing it either throught the xml interpreter or actionscripting.

Thanks!

Close Flash Player Button
All-

I would like to create a button that sits on the _root that makes it possible to close the flash player. I need to be able to "exit program". Any ideas?

Cheers,

Randall

How To Close The Flash Player Using Buttons
hi guys,

i would be grateful if you could plz help me out.
i wish to know the scripts attached to a button that when pressed will close the whole player running the .swf files that was playing.

plz help...
thnx,
vishal

No Events For Flash Player Close
I have DEACTIVATE and REMOVED_FROM_STAGE set on a few of my components, and they are firing fine. However, when I close the Flash Player or the browser that contains my Flash object, neither of these events fire. In fact, no events that I can detect actually fire. I need to pick up on the flash player closing or my objects being deactivated or something like this. Is there any way? Thanks much!

Using Javascript To Close Window In Flash
Hi,

I was wondering how you would implement a java script in flash to close the window that the movie is in (a pop-up), and at the same time get the main page to go to another adress than it is currently in.

Please help as soon as possible. Thank you!!



Niklasdesgin

Close Html Window With Flash ?
hi,

i created an intro movie which is running into a pop up html window. But i want the window to close when the movie is over. The JavaScript function would be: "window.parent.doclose()"

is there any possibility to call this function from within the flash movie or are there any other ways to ...?

thx

Meg

Javascript Close Window In Flash 4?
hi folks,

is there a way that i can close a flash file (i.e. a demo), but that way, that the user klicks on a button saying "close window" and that the function gets called via a javascript like HREF="javascriptarent.close();". is this realizable in flash 4 and if, how do i do that.

thnx

How Do I Get Flash To Close My IE Window After Some Time?
Anyone knows a script for that?
thnx in advance!

Close Browser Window In Flash 5?
Was wondering if anyone knew a script that would allow a Flash button to close the browser window that it is playing in. Any help, links, ideas would be greatly appreciated.

Thanks

Action: Close Window Within Flash
Hello to u all !!

I believe the subject explains everything!
all i wanna do is to be able to close the browser window within a button in flash

can someone help me???

think of it as a Christmas Gift

thanks anyway

Close Window Cmnd From Flash
I am very confused about this one. I am trying to close a full window frameset screen from a flash btn inside a frame. From my homepage I am calling a new window in javascript that is bringing up a frameset in full screen mode. flash is in the middle frame and I have a side frame (* just to get rid of that side bar in full screen mode )

I try to use the common javascript=close.window code, but to no avail. I have tested this for 20 hours now with new techniques from javascripts websites, but to no avail. Could someone tell me how this is done. You would be my hero. Thank you.

There is a working example : http://www.digitalbrand.com.ar/
Then choose 800*600 full screen english

Thank You

Need To Close The Html Window From Flash
Hi,

i have a html file which contains a swf which again holds a button, when someone clicks on it i need to close the html window which contains this flash movie. What script i should add to the button as well as for the html page?


da-hammer

Open/close IE Window From Flash MX
i have window inside whcih i have flash file...i was wondering if anyone could tell me how to close and internet explorer window from flash also how i could launcha fullscreen window.

Close Window Script In Flash 8?
How do you write this script so it works in Flash 8?

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

Close Browser Window From Flash
I have a Flash file in a pop-up window launched via JavaScript. In this Flash file is a button to close the window it is showing in (exit button). I'm not sure how to do this, though, since what I tried didn't work.

What is the correct code to close whichever HTML page a Flash file is on from that Flash file?







Attach Code

private function exitListener (e:MouseEvent){
navigateToURL(new URLRequest("javascript:window.close()"));
}

Close Browser Window From Flash
Hi,

How would I create a button within a Flash movie that would stop the movie and close the browser window it it running in? I have a web site demo tour that launches in a new browser window and I want the user to be able to close the window from within the Flash movie when they are finished watching....

Thanks in advance,

Bob

How To Close Popup Window From Flash
I have webpage that pops-up a window with a flash movie in it. What I like to do is when a user clicks on a link in the flash movie it both closes the window and passes the url to the parent window.

Close Flash Window Component?
Hi all!

Im currently working on a lite fix to ease the closing function of the popup windows in a flash presentation to our customers.

Right now i have used the Flash Window component, and the close button in the right corner are the only way to close the window. But are there some way possible to make it possible to close the window by clicking inside off it?

here are the AS code:


Code:

function open_popup(page_url, pageNumber) {
if (zoom_win != undefined) {
return;
}
hideZoomPointer();
zoom_win = mx.managers.PopUpManager.createPopUp(_root, Window, true, {title:"Sidnummer: " + pageNumber, closeButton:true});
zoom_win.createObject("ScrollPane", "zoom_pane", 0, {contentPath:page_url, _x:3, _y:31});
zoom_win.setSize(popup_width, popup_height);
zoom_win.zoom_pane.setSize(popup_width-3, popup_height-10);
listenerObject = new Object();
listenerObject.click = closeWindow;
zoom_win.addEventListener("click", listenerObject);
zoom_win._x = Stage.width/2-popup_width/2;
zoom_win._y = Stage.height/2-popup_height/2;
}
function closeWindow(eventObject:Object) {
zoom_win.deletePopUp();
zooming = false;
delete zoom_win;
myBook.flipOnClickProp = true;
myBook.autoFlipProp = 50;
}

Getting Vars From Flash On Window Close
Hey Guys,
So I have a flash video player with a full screen button.

user clicks to go full screen and this opens a window where the playheadTime and volume of the smaller video are passed through the URL.

This allows the full screen video to play from where the user clicked the movie and at the same volume.....great!

My problem is going back ward. Is it possible to use javascript in an onClose hadler within the HTML to run a function within the flash to retrieve the info I need?

This is so when the user closes the full screen window the smaller movies resumes fromt where they left off....make sence?

Any help much appreciated...as usual

Close Pop-up Window With A Flash Button
does anyone know if you can close a pop-up window by clicking a button that's inside the flash swf?

there's tons of tutorials online regarding how to create pop up windows in flash but nothing on how the user can close the whole window.

besides clicking the "x" on the browser window, is there any other way?

one thousand thank you's to the one that can answer.

How Do I Close A Borderless Window From Flash?
I used that chromeless.js script, deleted some numbers and then I got what I always wanted - a totaly borderless window with no toolbar or anything - just my .swf inside. Now how do I make a button inside that swf, that would close that window without ctrl+alt+del?

Close Window In Flash Using Tje JS Script
Hi,
I tried using all the comands like :
on(release) {

getURL ("javascript:self.close()");
}


javascript:window.close()"
and many more...

Nothing is working..
Please help..

Copyright © 2005-08 www.BigResource.com, All rights reserved