ActionScript 3.0 :: Open External Link Using It / Keeping New Window In Front
Aug 8, 2011
I am displaying a photo from an external link when called upon from my swf. When the user clicks a button, up pops a corresponding photo in a new browser window. After the photo window has opened, if the user clicks another button the photo browser will update but its no longer in front. I know I need to use the focus() command but cannot figure how to incorporate it into my AS3 code.[code]....
View 3 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
Aug 15, 2010
I'm having a new problem getting a new browser window to open in front of the current window. They are now opening behind and unless the viewer is smart enough to think of it and see the tab they think it didn't open. I use the recommended code. on (release) {getURL ("nameofURL.html", "_blank" );}I'm pretty sure this used to open a browser window that appeared in front of the current one, but now it never seems to although once in a while it may (that was with a file with an htm extension.)
View 3 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
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
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
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
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
Jul 13, 2009
just as the title says, _blank opens the link in a new window, _self does nothing could the issue be related to testing locally?
[Code].....
View 13 Replies
Mar 3, 2011
I have a flash video playing on an html page. Is there a way to turn the sound off of the flash video from a link outside the SWF file (on the html page)? I want to open a new pop-up window with a new flash file and turn off the sounds on video playing on the starting page, with an html or java script link.
View 1 Replies
Apr 30, 2009
I have set up a custom contextMenu. Now I want it to work similar to an html context menu.. I've seen it on a few sites but am not sure what the best approach is. Here's the basics of how I want it to work... If you right click on a link it will show "open link in new window" and for each link the target will change to relate to the link. But, if you right click somewhere that isnt a link the "open link in new window" is invisible.
View 2 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