ActionScript 2.0 :: Closing Flash Player Browser
Jul 23, 2002anyone knows about closing flash player using action script ? i really want to get the information immediatelly. [URL]
View 6 Repliesanyone knows about closing flash player using action script ? i really want to get the information immediatelly. [URL]
View 6 RepliesI 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)
There are many posts about how to close browsers, but so far I can't get any of them to work from a custom class. I am new to AS3 so I could be doing something wrong. My class *is* being called and the method *is* executing, but the browser (IE) does not close. I'm wondering if this might be a scope issue of some kind?
View 0 RepliesI have to put a flash lesson I created on a cd for a client and while testing it I noticed that my exit button in the movie no longer seems to function.This is my close window function
function closeWindow(evt:Event) var url:String = "javascript:window.opener=self; window.close()"; var request:URLRequest = new URLRequest(url); try
[code].....
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, isnt very user friendly
View 3 RepliesI have looked around for this and haven't found a way that clearly explains how to do this. More often than not the button will close the browser window in one but not another browser.
Is the a simple way of closing a browser window in all types of browser ( Or mainly Firefox, IE and safari on both Mac and PC ) with actionscript?
often than not the button will close the browser window in one but not another browser.Is the a simple way of closing a browser window in all types of browser( Or mainly Firefox, IE and safari on both Mac and PC ) with actionscript?
View 5 RepliesI'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].....
so I was having this weird phenomenon in a rather complex flash app, that even though the app worked fine and didn't throw any errors, it just crashed the flashplayer upon closing the SWF... I first thought that there was something in my code, that I was doing something wrong in my code, but I now have my app stripped down to this:
[Code]...
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.
I wanted to know if there is a way for the SWF to programmatically close the parent browser window or tab using AS. Also, is there a way for the SWF to tell the parent browser to bring itself to the top of the other windows (i.e. "bring itself into focus")?
View 5 RepliesI 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]...
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.
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...
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.
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 RepliesI 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
Can I create a flash file which will be used as web-browser. So basically, Flash will behave like Internet Explorer or Firefox, perhaps like loading a page inside iframe.
View 2 RepliesI've created a Flash file that reads from several different xml files and displays them when requested. When I run the Flash player, (by pressing Command-Space within Flash), it all works flawlessly. But when I open it within a browser, only one of the xml files loads, the other two just spin away on the preloader.I have another Flash file that is doing the same thing. A click on a scrolling new list should take you to another web page. In Flash Player it works fine, but from a Browser nothing happens
View 3 RepliesSo I recently got a new laptop. It came installed with Windows 7 64-bit and Internet Explorer 8. However, after installing the current Flash Player update, IE started freezing. I would open certain pages, and the browser would become unresponsive, leading me to end the program. I would try it again, and still the same result. The culprits were always the same, hotmail and tvshowsondvd, among others. Internet Explorer 9 was released a few days later, so I uninstalled IE8 and installed IE9.
The browser worked fine for a few days, but then it started to do it all over again, with the same web pages! Then I noticed something, all these pages were heavy in flash objects. So I tried uninstalling Flash Player 10 and guess what, it started working! No more problems loading pages. I can no longer view flash objects, especially on YouTube. I haven't had the problem since, but I need Flash Player installed.
I have a swf file which loads the YouTube API player at 640px by 400px:
function onPlayerReady(event:Event):void {
trace("player ready:", Object(event).data);
player = loader.content;
player.cueVideoById( t***Path , "0" , "medium");
player.setSize(640 , 360 );
[Code]...
For some reason, I can get this file to play in the web browser, but I can not get it to play in my flash player.
File:
http:[url]......
The file is a file that uses cURL, to load the song from the saved url. I am thinking that it is a cURL thing, because when displayed in my google browser, the load bar doesn't load on my page, but on the link below it does display.I use other songs in the same flash player by just linking to a different id number and those songs play fine in the player. Why does this song do this, and others don't?
File on the web: http:[url].....
I have a swf that runs in flash player but if i load the swf into anotherit says I have a null variable and fails. It fails if I run in a browser too. I have debugged to the nth degree and cant find any errors as its not showing any cos it runs perfectly. If i add a pre loader component it fails to run...but again perfect even across a network if i run it in flash player
View 1 RepliesI've just noticed this problem a few days ago while working on this project [URL]
The hand button is flickering like crazy when the mouse is over the buttons and some times event the browser dose the same thing
just wonderign whast's the preferred/easier method:1 add the player detection code into flash2 use html editor (like dreamweaver) to insert some javascript on the webpage
View 4 RepliesThe Flash site I'm working on is causing Flash player to crash, both inside the browser (taking Firefox down with it) and inside the Flash IDE (taking Flash CS4 down with it) --this is regarding Flash Player 10,0,22,87 (debug version)
The exact point of crash varies considerably and no Flash errors appear, so I can't pinpoint the problem to any particular code. I thought there must be a nasty memory leak somewhere, but since I've started monitoring that (via System.totalMemory) that doesn't appear to be the problem. I thought maybe using hardware acceleration might be the cause, but turning it off hasn't made a difference. I'm using PaperVision3D Great White. Not using full screen--at least not YET. I'm streaming some video, streaming some audio... I don't know what's left.
I am working on a project that is not going on the web, but CDs. I'm trying to have a swf load in a new flash player window when a button is clicked. I've searched the web, but seem to only find how to open a new browser window.
View 8 RepliesI'm into LMS courses, and use a lot until today the combination of flv's for characters and loadSound for make them talk. Until today because after this week I've update my flash to 10.1 and boom, all my courses now are crashing in any browser that have the update. I already noted that the problem is the netStream. Here's my current Actions just to quote, I've been using this since version 9 of the flash player with no problems:
[Code]...
I've got an old flex builder 3 project that I imported into Flash Builder 4, and I want this project to run its web applications in my web browser. However, the apps persistently run in the Flash Player instead. This is causing no end of problems because of the flash player bug documented at [URL]..
View 2 RepliesI know how to detect if Flash player is installed in a browser. I'm using the hasFlashPlayerVersion() function of swfobject for that. However, I can't seem to find any documentation on how to detect if the plug-in is installed and just disabled. I didn't see any documentation in the Flash Player Detection Kit that checks if the plug-in is enabled either.
View 4 Replies