I have a rotating banner that I have created and it receives it's image and url info from an XML document. When you click on the image displayed it takes you to the correct link but it opens it in a new window. Is there a way to make the link open in the current window?
I was just wondering how when you assign a link to a button, instead of it opening that link in the same window, how can i get it to open it in a new one.
I have navigateToURL(new URLRequest("page address"),"_self"); still opening a new window for all of the buttons in my menu. I think I have the syntax correct so are there any other factors?
Here is the code
ActionScript Code: Button1_btn.addEventListener(MouseEvent.CLICK,mouse1DownHandler); function mouse1DownHandler(event:MouseEvent):void {
i found this code somewhere, and have used it for a site, but the links open on the same page and i cant find an option to have them open in a different target window.AS code:
Code: // The first step is to activate the XML object headlineXML = new XML();
How on earth do I get the HTML links inside a flash movie open up in the same browser window where said movie is embedded in (As opposed to opening up as a new pop-up windows)? Here is the code I have inside each of the buttons I have inside my flash movie:
var link7:URLRequest=new URLRequest("videos/december.html"); videos_btn.addEventListener(MouseEvent.CLICK, buttonClicked7); function buttonClicked7(event:MouseEvent):void { navigateToURL(link7); }
I'm having a little trouble with my flash banner. When I click on my button, it opens the link I specified in a new window or new tab, like target _blank in HTML. I want it to open in the same window, so you're still navigating through the site. Here's my button's code: link_btn5.addEventListener(MouseEvent.... goToURL5); function goToURL5(e:MouseEvent):void{ navigateToURL(new URLRequest ("/forums/index.php "));}
I am trying to have multiple links off site but have hit a brick wall. If I have the code listed below, it opens the second link as soon as you open the links page, If I have the"function onLinkClick (evt)", above btn6_btn I end up with the duplicate error message. Is there a way to have multiple link buttons on a page. I have played with this for hours.
I was given the following code to have my button open a link.
testbtn.addEventListener(MouseEvent.MOUSE_DOWN, gotest); function gotest(event:MouseEvent):void { navigateToURL(new URLRequest("http://www.bing.com/")); }
This function works fine except that it opens all my links in new windows or tabs. I added the "_self" parameter to the function and created the following:
1) how do you open a new window if you have thumbnail pics in the flash movie but want the full pic to open up in a new window? Is this Javascript inside flash?
2) How do they do the menu bar here at this site:[URL]
I work with 3d animation. Im have a problem with a personal website Im doing, I have a link in a button inside a flash movie to open a new window and play a youtube movie:
on (release) { var jscommand:String = "window.open('http://www.youtube.com/v/b0L4XLODhAA&hl=en&fs=1&','win','height=344,width=4 25,toolbar=no,scrollbars=yes');"; getURL("javascript:" + jscommand + " void(0);"); }
This works fine in Firefox but in IE it doesnt work, I then change the /v/ in the youtube link with /p.swf?video_id= and now I have the window open showing the small youtube thumbnail of my video but once a click play, nothing happens, I check it and is not loading anything.
i have a flash site that links to PDF's with the navigateToURL function which works etc But now i would like Link to rather open up a download window instead of just a new browser window?
I'm trying to get the link to open in the same window instead of a new window, it's currently set to _blank. I tried _top, _self, _parent. When it's set to anything other than _blank the link doesn't work.
In Flex Air app, how do you open a window behind an active one?
I tried following and i can't seem to get it to work
[Code]...
With this code, I would expect window1 to open behind the main app window and, in 3 seconds, window2 would open behind window1. But if you execute this, window1 will open on top of the main window and window2 will open on top of window1 and the main app will retain focus. This seems like a bug in the Flex. If so is there any workaround for this problem?
When the button is pressed, it tries to open in a new tab or in a new window (depending on if you are using Firefox or IE) and first gets blocked by the pop up blocker.
How can I make this where it opens without targeting "_blank" ???
Code: { var targetURL:URLRequest = new URLRequest("http://nameofwebsite.com/about.htm"); navigateToURL(targetURL); this.addEventListener(MouseEvent.CLICK, goURL); }
I have a Flash site which uses SWFAddress, it has been working fine for more than a year. Recently I opened the fla file again in order to update the site, which I do often. When I publish the swf to test it and click on a link which is supposed to link to another page within the swf itself, instead this opens up Google Chrome, which appears to be going to chromium.org, then the browser crashes. After this, all links within the swf work normally. This is happening with fla / swf files that were working perfectly fine before, and haven't been modified since.
When I upload the file onto the web server to update the site, it behaves a bit randomly; sometimes it works fine, other times the very first clicked link doesn't work, however if I click the same link again or any other link on the page it works fine from then on.
my links will not open in myspace anymore. read this article for further explanation. [URL] i dont understand what they mean. im just trying to get these buttons working... [URL]
The links I have in my .swf keep opening in new windows/tabs rather than the same one, how can I make it open in the same tab? Here's my actionscript 3 script:
aquaheal.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_2); function fl_ClickToGoToWebPage_2(event:MouseEvent):void { navigateToURL( new URLRequest("http://www.mediwales.com/index.php?id=6&member=9"), "_self"); }
The page is loaded fine.But when I click the links I found sometimes there was no any response while I need a new explore window opened with the linking url.And also I tried:
I'm working on a SWF that is a banner on a home page and the is opening links a new window despite my attaching the "_self" argument to the navigateToURL command.Like here is a snippet of code TO ME it looks right:
PHP Code: var link_001:URLRequest = new URLRequest("http://www.lcc.edu/schedule/");button_001_btn.addEventListener(MouseEvent.CLICK,
[URL] On the left you will see a menu, it will be flash (actionscript MX 2004) and for the effect I want it will have to be flash. Now, heres the tricky part for me: I want those links to open up different pages inside the black center box either using frames or php. How could this be done? On the menu part, also, with the buttons, I need to make them movie clips for the effect I need for the rollover, but I want the movieclip to have a hitspace, how do I assign a movie clip a hit space.
I'm working on a site that's intended to display full screen. At present the initial HTML page has a "launch site" link which pops up a fullscreen window (via javascript window.open) with our Flash content.Once in the Flash site, all URLs that point at off-site destinations are set to open in a new window ("_blank" as the target - either an href in text, or via navigateToUrl). In Mac Firefox the new window opens BEHIND the full-screen Flash (as a new tab in my case). In Windows FF and IE, and Mac Safari, the new window pops in front of the fullscreen Flash.Is there a way to make the non-fullscreen window pop in front of the fullscreen Flash? I'm using swfobject 2.1 - perhaps I need to use an externalInterface call...thoughts?
how to make the URL open in the same window. I am using flash CS3, Is there anyone who can edit the script below to allow this. The instance name is Button6
var getnextpage5:URLRequest = new URLRequest ("http://www.yokubou.co.uk/digitalart.html"); Button6.addEventListener(MouseEvent.CLICK,b5Click) ; function b5Click(event:MouseEvent):void{
I'm new to flash and can not find an answer to what I would think is simple. I may not be searching for the right thing. Anywho... I am creating an flash presentation. I want to open a swf file in a new window. I know how to load them inside the current window, but that won't help. I searched the web and found: getURL("name.swf", '_blank') but that does not work. Thinking it may be as2, and my file is as3.