Actionscript 3.0 :: Open Link In Fixed Sized Window?
Feb 4, 2010Is 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 RepliesIs 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 Replieswhat is the as for opening a sized window off a link. for example, clicking an image thumbnail, and it opens larger in a window that fits the picture. with no adress bar, or stuff like that.
View 5 Replieshow do I translate this html code:
<a href="ch.mov" onClick="MyWindow=window.open('ch.mov','MyWindow', 'toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=no,resizable=no,width=360,hei ght=250'); return false;">
I want to be able to have a button open a new window specifically sized and without scroll bars or extraneous browser crap.
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 RepliesI've tried all the tutorials on kirupa, checked out adobe live docs, forums all the works and i've tried 20 different methods to open a browser window with a fixed width and height. i'm using Flash 8 and am wondering if there is a new method for opening a browser window with ixed params. it seems every tutorial i find is for flash 5 or earlier and none of them work. and i've tried opening them both in firefox and ie. the standard getURL _blank works fine of course...i just need to adjust the window size to scale to an image.
View 5 RepliesI 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.
how to use the " naviagateToUrl" function to open a specifically sized window..
or any other function that will open a new sized window
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 RepliesI'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]....
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]....
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].....
I have a simple link in my flash movie. The code attached to the button click goes like this[code]...
View 3 RepliesIm 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?
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]....
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...
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 RepliesIm 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?
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].....
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.
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].....
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 Repliesi,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 RepliesWhat am I doing wrong? My link opens in a new window rather in the same window.[code]
View 2 RepliesI 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 RepliesThe 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].....
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();");
}
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.
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].....
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 Repliesjust as the title says, _blank opens the link in a new window, _self does nothing could the issue be related to testing locally?
[Code].....