ActionScript 3.0 :: Make Flash Banner's Links Not Open In A New Window?
Aug 18, 2009
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 "));}
View 4 Replies
Similar Posts:
Jun 19, 2009
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);
}
View 3 Replies
May 30, 2007
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.
View 3 Replies
Apr 1, 2010
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?
View 2 Replies
May 1, 2011
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 {
[Code]....
View 1 Replies
Oct 9, 2009
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();
[code]......
View 2 Replies
Nov 1, 2009
What I am trying to do, is to make a flash banner that links to more than one URL. I have looked around for a solution for this problem of mine, but haven't found a thing. I've made banners before, linking to only one URL and that hasn't been a problem. I tried to copy/paste the AS stuff from one layer to another, but that just gave me an error message: 1021: Duplicate function definition
Google pointed out this forum when I was looking for a solution to that problem, and I tried mixing numbers in the buttonClickHandler among other things. Sure enough the error went away, but I still can't get the .swf to to work as I want it to. Now it just exports and lets me know that there are buttons there, but they don't take me anywhere.
View 6 Replies
Mar 6, 2004
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]
View 1 Replies
May 17, 2009
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.
[Code]...
View 15 Replies
Aug 19, 2010
how to make lightbox window open from flash. I just want to click a button to open a lightbox window.
View 1 Replies
Nov 8, 2010
I have XML displaying in dynamic text boxes. Some of the text are a href links, I also want to track which links are clicked by sending a javascript call to Google Analytics. Is there a way to do it and also open the link in a new window?
View 1 Replies
Jan 2, 2012
The flash player has a little window that can be opened (similar to flash->settings) telling the user to update the player if the movie loaded is for a more recent version. How can you instruct the player to do this? ITV have managed it with their catchup-tv player.
Context: I am allowing users to copy flash into their PowerPoint presentations and would like to tell them to update their flash player if necessary. I am not embedding a web page in the power point so no JS can be run for checking etc (because I know this is not necessary).
View 3 Replies
Jul 13, 2009
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.
View 8 Replies
Apr 29, 2010
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:
[Code]...
View 3 Replies
Aug 20, 2009
i have created some flash banners with a url embedded in them, so when they are placed on a web page the banner links through to my website when clicked. Fairly simple.But, i tested them on a website on my server to link to another website on the server and they worked fine. When i gave them to a client to embed on their own website (the flash files are hosted on my server still), the links no longer work.
Is this a security issue to stop the links working? i also checked it in linux and the banners worked, but in windows they do not. I dont want the client to have their own local copy of the flash file, as i may update it in the future and dont want to chase up lots of different copies everywhere.
View 3 Replies
Jul 16, 2009
I have a banner I created with scrolling thumbnails across the bottom. I'd like to put a link on all the seperate thumbnails. Can i do that in flash?
View 3 Replies
Jan 19, 2010
Does anyone know how to make the URL open in the same window. I am using flash CS3:
vr getnextpage5:URLRequest = new URLRequest ("http://www.yokubou.co.uk/digitalart.html");
Button6.addEventListener(MouseEvent.CLICK,b5Click) ;
function b5Click(event:MouseEvent):void{
[code].....
View 2 Replies
Dec 28, 2009
link opens up a new window rather that the same window?
PHP Code:
//listen for mouse click on" button"
button,addEventListener(MouseEvent.CLICK, navigatetoURL);
[code].....
View 6 Replies
Dec 29, 2009
What am I doing wrong? My link opens in a new window rather in the same window.[code]
View 2 Replies
Feb 5, 2012
I'm using an as3 TextField called textField and I'm updating the .htmlText property to include a hyperlink. I'd like to know if anyone knows how to make the hyperlink open in a new window or is it limited to opening up in the same window?
View 1 Replies
Mar 1, 2011
how to go about creating a flash banner that when clicked navigates to another location in the timeline
View 1 Replies
Oct 13, 2009
I am building a banner ad and I am using Flash CS4. I need it so when someone clicks the banner it takes them to the page in a new window. Its just a a simple URL and I keep getting syntax errors now and I dont know how to do this properly. I have tried these methods.
[Code]...
View 1 Replies
Nov 10, 2009
How to make right click menu in Flash with "open in new window" for sIFR link?
Can we make in sIFR3 directly?
View 1 Replies
Oct 13, 2011
How to make a button which opens a pop up window(don't really knows if that's the correct name) with a image or text, centered, but the site isn't available unless I click the "x" button on that window or outside the window.
View 1 Replies
Jan 15, 2010
I made a Flash banner ad that I want to put on my site for my client to view. In Flash, when I test it, everything works, button email link. I import it into the body of my DW html page, test it in DW...works. However, when I upload to my site, the button doesn't open an email link.
Attachments: MatterAd.swf (32.3 K)
View 1 Replies
Aug 28, 2006
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]
View 6 Replies
Nov 19, 2009
Flash noob here using cs3/as3. I'm trying to create a simple banner which fades between 2 images, looped. (This I can do!). What I'd like is to have each image link to a different url. I've tried changing the images to buttons with the following actionscript:
on (release) {
getURL('http://www.mysite.com', '_self');
}
but get the following error: Mouse events are permitted only for button instances even though they are buttons! I thought this would be really simple, but obviously not! Any ideas are gratefully received.
View 14 Replies
Jul 13, 2010
I have a banner that I'm creating, it has 5 images that rotate via motion tweening. I've created an invisibile button (and also attempted to create multiple buttons) so that when you click on a specific image it will bring you to that URL. So far I have only gotten it to work for the final URL. No matter which image I click on, it only brings up that last URL.
Here is my code:
btn1.addEventListener(MouseEvent.CLICK, buttonClickHandler1);
function buttonClickHandler1(event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.google.com"));
}
[Code]....
View 1 Replies
Jun 22, 2011
I'm working on a project for a client and I'm doing something I have never done in Flash. The Flash first loads four images that have been converted to buttons. Those four by itself link correctly, but when I add the code for the next two sets of images the code breaks and none of the links work. I'm not sure what to do. Here is the code for the first two sets of images:
The last two links cause a problem. I get Error 1120 access of undefined object. However, when I click the button and look in the properties box it says Instance of BTN_Adult01 and Instance of BTN_ModelFemale so I'm not sure what the problem is.
I tried to paste my source code but it won't let me because it contains links and I don't have enough posts, but I did attach the file.
View 3 Replies
Jan 12, 2009
What I am trying to to do with this ad is have two separate URLs to click on. I would seperate the ads but this is what my client wants and I can't figure it out for the life of me!!
[Code]...
View 8 Replies