Open Link In New Window, Specified Size?
Jul 7, 2010
Pretty simple- just trying to have a link in my .swf open in a new window, with a specified size.
I have done this before but can't seem to remember/find a tutorial... well besides one on kirupa that didn't seem to work for me.
I believe the method I used before involved putting some code on the page you were linking to...
View 1 Replies
Similar Posts:
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
Oct 30, 2009
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?
View 3 Replies
Nov 18, 2009
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.
[Code]....
View 7 Replies
Jan 19, 2010
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{
[Code]....
View 2 Replies
Jun 17, 2010
I've been using this code, which, when i click on a button it sends me to a new link, but when I put the .swf on my website and click the button, it sends me to a new tab *BUT* the url is instead ofI also want it in a new window instead of a new tab.here's the code (All in the first frame)
Actionscript Code:
button31BTN.addEventListener(MouseEvent.CLICK, clickButton31);function clickButton31(event:MouseEvent):void{ var url:String = "www.theurl.com"; var
[code].....
View 2 Replies
Apr 21, 2009
I have a simple link in my flash movie. The code attached to the button click goes like this[code]...
View 3 Replies
Sep 6, 2009
Im new in flash.I have a link in my flash menu "Home" section. The code attached to the button click goes like this [code]...
The link works fine, but it dont open in the same tab. It keeps opening in a new tab. I need it to open in same tab in my browser. wat i have to do to open it in same tab/window?
View 3 Replies
Mar 15, 2010
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{
[code]....
View 2 Replies
Jan 19, 2010
Does anyone know 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 URLRequesthttp://www.yokubou.co.uk/digitalart.html");Button6.addEventListener(MouseEvent.CLICK,b5Click) ;function b5Click(event:MouseEvent):void{navigateToURL(getnextpage5);}
View 1 Replies
Feb 1, 2011
Im using AS3 obviously, and this is my code so far.[code]...
I have three frames that i want to link to three different html pages and i need them to open in the same window. I have put this code on each frame, changing the instance names for each frame (link1, link2 and link3)
When i click the flash in pulish (f12) the link works but in a new window, not the same. Does this mean the 'self' attribute is wrong? or is it for some other reason?
View 1 Replies
Jan 4, 2010
I'm using an XML file to load all my images and text, but would like an image to link to a website, but open in a new window.So far, here's my relivant code;
In the .XML ;
Code:
<page name="Picture_Image_1">
[code].....
View 3 Replies
Sep 6, 2007
I can't seem to get a link to open in a new window, no matter what I try. I thought this was a problem with firefox, but I'm not sure. I'm simply using getURL like this... the link is loaded from an XML file
mainBtn.onRelease = function():Void {
if (this.gallery == "yes") {
logo_mc.unloadMovie("MD_imagefader.swf");
[Code].....
Basically, firefox just says "transferring..." on the bottom when clicked forever, and never loads anything nor does it open a new window. When I test it on my local hard drive, firefox returns a security error that it's trying to communicate with a web source.
View 2 Replies
Apr 7, 2010
I can't seem to find any info on how to do this. Here is an example of what I am trying to do: [URL]
View 1 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
Feb 20, 2010
I have created a flash website which contains a link to an outside website. When I click on the link, it takes me to that outside website in the same browser window. To go back to my website, I have to use the back arrow. I want to change the link to the outside website so that the link opens in a new window. Therefore, if somebody goes to the link, when they finish they can close the new link's window and the original window with my website will still remain, without losing both upon closing. What do I need to adjust in order to do this?
View 4 Replies
Oct 13, 2011
i,m developing a HTML site and used one animated flash button(AS2) I want a small sized window to open when a user clicks on a button. The window will contain information that i want to display.It dosnt require a normal 800x600 window to open. I just want a 1/4 size of 800x600 etc.
View 14 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
Jan 30, 2012
I need to make this button open a link in new window (pop-up)all I need to know is the code that i should use in the actionscript
View 3 Replies
Oct 2, 2006
The problem aren't about html, php or webdesign itself I believe, but the problem is the flash menu. The menu is coded to open the buttons in the same window, but it doesn't, it opens the links in a new tab/window which is very annoying, I've tried to fix it by adding "_self" to the flash file, but it doesn't work at all now, it doesn't go anywhere when I press on the menu!
Code:
public function mouse_Down(e:Event):void {
trace(e.currentTarget.href);
[code].....
View 1 Replies
Apr 25, 2008
I'm trying to get my dynamic link to open in a new centered window. The window opens fine, but it tries to display the url "url[p]" and not its correct dynamic link.
Here's my code:
Code:
on (release) {
getURL ("javascript:NewWindow=window.open(url[p],'newwin','650,400,yes,center'); NewWindow.focus();");
}
View 2 Replies
Mar 12, 2009
I got a problem with my website [URL]. The problem aren't about html, php or webdesign itself I believe, but the problem is the flash menu. The menu is coded to open the buttons in the same window, but it doesn't, it opens the links in a new tab/window which is very annoying, I've tried to fix it by adding "_self" to the flash file, but it doesn't work at all now, it doesn't go anywhere when I press on the menu!
[Code]....
I've no idea how to fix this right now, I've tried googling but I only found as2 ways or changing the "_self" to '_self', but that doesn't work either. I got another site that is my personal portfolio (forte is more of a schoolproject) and I tried thesame thing out there, and it worked! So I thought that maybe surftown (that is forte's server provider) has something against this or something, I dunno.
View 4 Replies
Sep 16, 2010
trying to open a window with defined size in a button, but never to the right (do not want to use functions inside the html file) wanted to make the following way: when you click the button, it opens the file size that I set to the window (the file will be opened this in html
View 1 Replies
Dec 9, 2011
I am trying to open a url top 960 X 540. Here is my code:
GiftShop.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_17);
function fl_ClickToGoToWebPage_17(event:MouseEvent):void
{
[code]........
View 5 Replies
Sep 1, 2004
THE QUESTION I tried to go thru' your instructions using Get URL and putting the java script but I think I'm not doing it correctly, it simply doesn'T adjust to its own size. You can see the stuff on my website [URL] to give you a better idea what I mean.
I have a main flash movie for the index page called inverse.swf, on that main movie it has Photo swf as a sub movie, if you click Photo button. hence it will lead to sub swf movie(photo.swf), if you click pix which says Ripple the separate browser in width 440 height 325 should show up, but instead it shows up in huge browser instead. Like you said on your site, I tried to use Get URL and put the script as [URL] but what I got confused about was if I needed to publish the Photo.swf, since that is the movie it has the button. I did publish the Photo.swf to html, and added your javascript, but when I tried to see it on the net nothing shows up. So what I did later on was instead putting
[Code]....
View 3 Replies
Sep 1, 2004
I tried to go thru' your instructions using Get URL and putting the java script but I think I'm not doing it correctly, it simply doesn'T adjust to its own size. You can see the stuff on my website give you a better idea what I mean. have a main flash movie for the index page called inverse.swf, on that main movie it has Photo swf as a sub movie, if you click Photo button. hence it will lead to sub swf movie(photo.swf), if you click pix which says Ripple the separate browser in width 440 height 325 should show up, but instead it shows up in huge browser instead.
but what I got confused about was if I needed to publish the Photo.swf, since that is the movie it has the button. I did publish the Photo.swf to html, and added your javascript, but when I tried to see it on the net nothing shows up. So what I did later on was instead putting
I put
on (release) {
getURL("Ripple.html", "_blank");
[code].....
View 3 Replies
May 15, 2009
this is what I have as code but it opens in a new tab when i click the button
futureBtn.addEventListener(MouseEvent.CLICK,goFutu re);
function goFuture(e:MouseEvent):void
{
[code].....
View 3 Replies
Feb 4, 2010
Is there any way to open a link in a fixed window size, for example a way of passing window size paramaters with navigateToURL?[ccode]...
View 2 Replies
Aug 9, 2006
I have dynamic text in my movie that when clicked opens different image jpgs in _blank window. I would like to be able to have the blank window open at a set size so that when the link is clicked it doesn't open the image in a full window.Code:<a href='http://" + currAttribs.link + "' target='_blank'>Keep in mind that I'm not calling actual html pages but rather jpg files to open in _blank pages.
View 4 Replies
Jun 9, 2006
is there a way to open a new browser window with a set size and position?
View 3 Replies