Javascript :: Opener Window ... Navigate To URL?
Dec 29, 2009
Ok so my main window is going to open up a popup window, the popup window is going to contain a Flex app. The flex app is going to need to navigatToURL() but also send POST data along with it. However instead of the popup-window navigating, I would like to main-window to navigate to the url and recieve the post vars.
View 1 Replies
Similar Posts:
Feb 24, 2011
I have a webpage (popup) with flash content. When a user clicks a button inside the flash content, it opens up another browser popup window. Next, I need to close the window with flash content from the newly opened popup window through javascript.
The problem is that the window.Opener is null as the popup is invoked inside from flash content. Moreover we dont have access to flash (.FLA) file.
View 1 Replies
Feb 7, 2008
I have a pop-up window containing the Flash. After clicking a button, the pop-up will CLOSE (<---i know how to do this) and needs to reload the MAIN (opener) window to a different URL.Has anyone done this
View 1 Replies
Jan 2, 2010
I'm trying to open a pop-up browser window from flash using the following code:
p1_mcButton.addEventListener(MouseEvent.CLICK, viewPopup);
function viewPopup(e:MouseEvent) {
var jscommand:String = "window.open('MGS_SCOs/00001
[Code]....
Safari can't use JavaScript for this action. Safari can't run the script "window.open('MGS_SCOs/00001 player.html','win','height=600,width=900 ,toolbar=no,scrollbars=yes'); void(0);" because Safari doesn't allow JavaScript to be used in this way.
View 4 Replies
Apr 19, 2006
I'm trying to open a pop-up browser window from flash using the following code:
p1_mcButton.addEventListener(MouseEvent.CLICK, viewPopup);
function viewPopup(e:MouseEvent) {
[code]....
BUT, I keep getting this error:
Safari can't use JavaScript for this action.
Safari can't run the script "window.open('MGS_SCOs/00001/player.html','win','height=600,width=900 ,toolbar=no,scrollbars=yes'); void(0);" because Safari doesn't allow JavaScript to be used in this way.
View 3 Replies
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
Nov 3, 2010
I would like make a script for Greasemonkey (GM),that find and navigate in a link embed in a flash element.I think that is possible to make it to work with function .click() ,but won't work Here's the source code of the page that contains flash elements..
View 1 Replies
Apr 12, 2011
And just loved the way it looked, anyone have any idea how to get a similar effect using ideally CSS/JS and if not then using flash? Furthermore it would be excellent if you could move to the next slide by clicking on the image itself.I'm also wondering how she is able to maintain height of the images when resizing (unless she is doing it manually which I doubt now days).
View 1 Replies
Mar 2, 2011
I am trying to open a new browser window popup from Flash. I am using:
[Code]....
What is supposed to happen is that the popup should open in a new smaller window whilst the original window keeps displaying the flash file. Not sure what I'm doing wrong. Is there a better way to go about this? NOTE: I know that you can call JavaScript functions and house your js in the HTML file, but I cannot edit the HTML file since it is a page from a remote site.
View 5 Replies
Feb 2, 2011
The swf files has many hyperlinks. And this swf files are downloaded from an external source. So cannot change its source code. My question is that from javascript, jquery be made that all the hyperlinks that appear in the swf be open in a different window also which starts with an http:// location
<div align="center">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="myMovieName">
<PARAM NAME="movie" VALUE="/media/cam.swf" />
<PARAM NAME="quality" VALUE="high" />
<PARAM NAME="bgcolor" VALUE="#FFFFFF" />
<EMBED href="/media/players/camera.swf" src="/media/players/camera.swf" quality=high bgcolor=#FFFFFF NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash">
</EMBED></OBJECT></div>
View 2 Replies
Oct 9, 2009
I've been trying to find the Migration from AS2 to AS3,for the following code:
ActionScript Code:
on (release) {
getURL("javascript:NewWindow=window.open('main.htm l','ssWin','width=990,height=600,left=0,top=0,tool bar=N0,location=No,scrollbars=No,status=No,resizab le=No,fullscreen=No');NewWindow.focus();");
}
the code I've got so far is:
ActionScript Code:
if (mcUrl == i)
{
[code]....
But I'm not sure how to implement JavaScript in it.
View 1 Replies
Aug 4, 2005
I have a code, by which I open the page in a new window.
[Code]...
View 9 Replies
Mar 21, 2009
I am opening a pop up windows with javascript from my Flash movie that works fine. Each opening window has a video in it. Now what I'd like to do is add text under/above the quick time movie inside the pop up windows. I'm not very savvy with programming and I've tried to look all over but can't find a simple direct answer, Here's the code I have inside the Flash movie:
[Code]....
View 5 Replies
Dec 10, 2010
How can I control a flash movie in a window from a child (pop-up) window invoked via ExternalInterface's call method?
The name of the movie is myMovie. Using javascript in the popup, I try to access a function in the movie using document['myMovie'].flashFunction(). However, since the javascript is in the popup window and the flash is in another, the browser complains that the function is undefined.
This would have worked if the javascript and the movie were in the same window.
I use Firefox.
View 1 Replies
Feb 23, 2011
I am tring to create a Chrome extension that adds a contex menu entry when ever the right mouse button is clicked. I also need for the new entry to be displayed when the right click is on a flash object (Such as Youtube clip) I cannot find a way to do it... Can it be done? What directions should I check?
View 1 Replies
Aug 1, 2011
It is a small widget. It lives in an iframe, and because of this, this method is not working. And since the iframe is loaded from a different domain there is no way to reach the top level window object.
[URL]
"With the recent new 10.3 player this should be much easier, since there are new events for this specific situation."
So, using a simple flash object, and maybe js callbacks this might be the solution, but what are theese events?
View 2 Replies
Dec 19, 2005
In actionscript I am trying to get the location of the host html doc that has the .swf embedded (ie: [URL]). I have tried the _url method in actionscript, but it returns the path of the .swf doc relative to the website (ie: [URL]) Is there a way to achieve this in Actionscript? I looked into fscommand but I need this to work with Safari for Mac OS.
View 7 Replies
Aug 2, 2010
I think I remember hearing that you can trigger a java alert message from within actionscript out to the html page but whats the code to do such a thing?
View 2 Replies
Dec 31, 2009
I have a html popup containing one flash file. Onclose of the popup I need to write some values into the socket. How can I handle the onclose event from flash ?
View 1 Replies
Nov 24, 2011
I'm looking for a code to stop all flash animations on a web page when this page/tab is not focused or active. Because this problem causes performance loss at any computer.
View 1 Replies
Sep 20, 2010
I'm working on a kind of coverflow layout and I'm using an XML file to house my links and information about those links. in my ActionScript, I'm using getURL to point to the link the user clicks and open the link in a new window using the following script:
getURL(infostruc[current - 1].artLink, "_blank");
I need to have the new window open up to a specific size (1014x714), but I'm not sure how to write the AS for this kind of action since I'm calling the link from an external file.
View 1 Replies
Jul 7, 2005
I've been attempting to launch a window from an attached movie, I've got the function to work but after it launches, the main window (with the flash file) relocates automatically with the message "[object Window]"
I'm presently using the following coding with the button's AS:
Code:
getURL("javascript:window.open('http://www.atomicstos.com/popup.html','Nubeau Guarantee', 'toolbar=no, location=no, status=no, menubar=no, scrollbars=no, resizable=no, width=500, height=800')");
I've attempted to setup a javascript function in the HTML and have the "getURL" call the function, but that doesn't seem to work.
View 1 Replies
May 28, 2008
I cant seem to find the solution to call the javascript:window.close() function.It is running locally so there may be some issues on that front.Has anybody used this type of functionality before. it is doing my head in.
View 3 Replies
May 21, 2004
In Flash, I programmed a directions html page to close when a link is selected.However, it asks if you are sure if you want to close the page.Well, my audience will probably hyperventilate if they see that pop-up.Is there a way just to hard close a html window without the pop-up message?Also, are there any good tutorials out there combining Flash and Javascript?
View 6 Replies
Feb 24, 2010
I have a Flash file embedded into HTML - the objects inside are place based on the browser's screen size.Most of the time I don't want a scroll bar, as things are correctly placed, but once the browser window gets too small it'd be nice to have it.So, the main question: can I have a Javascript code listening for the browser window, then adding a scroll bar if it's smaller than a certain number?
View 1 Replies
May 21, 2010
I have to have many small thumbnails on a page and each one needs to open up to a full size (640x480) video with controls when clicked.
View 3 Replies
Jun 21, 2010
I have a Flash/Flex object (Flashlight-VNC), which I would like to dynamically resize to fit the entire window after pressing a button in the Flex app. This would preferably happen without restarting the Flex app (and therefore the VNC session). I would just use the built-in Flash fullscreen mode, however Adobe's somewhat silly security restrictions prevent keyboard input while in fullscreen mode.
How exactly can I do this? I'm already using SWFObject to embed the SWF, if that helps. I am open to any solution utilizing ActionScript, JavaScript, or both, however I am not all too familiar with ActionScript or Flex, and the AS-based solutions I have found involve extending a "Sprite" object to add resize functionality, which Flashlight-VNC does not seem to use.
View 1 Replies
Nov 6, 2010
I can open a new window using window.open() in ExternalInterface.call() but then I want to be able to write contents to the new window. Since, I cannot get the reference of the window back from window.open() call, I am not able to do anything to the window once it is opened.
I do not have any control over the HTML in which my swf is displayed.
Has anyone been in this situation before?
Update: After a few hours of trial and error I found you can get out of this situation by storing your window reference globally and referring to the same global reference whenever you need to access the new window.
View 2 Replies
Apr 24, 2011
Most flash-based browser games don't seem to resize properly when the user resizes their browser window (i.e. ctrl+mousewheel). Example of bad resizing: Boxhead The Zombie Wars. Please refrain from playing for a moment, lest you forget about my question.
Some (surprisingly very few) actually do resize properly. Example (at least in Chrome): D.N.8
Is there a simple or standard technique to accomplish proper resizing? How do you do it?
View 1 Replies
Sep 7, 2011
I have a web page that uses javascript counters to count user "active" time, meaning the time a user spends viewing this page (and not some other page). I do this by starting/stopping them using the [URL].. However, when the user clicks on a plugin inside the same page (flash, java, etc), the window loses focus and window.onblur is fired. Is there a way to tell that the user is still on my page?
View 1 Replies