ActionScript 3.0 :: Hyperlink Text - File To Open Up In The Same Window?
Jan 13, 2011
I have attempted to have a hyperlink text using actionscript:
[Code]...
when I run the code it always creates a new window to open up the file in. I have even attempted to switch out _self with _top, _parent, and _blank, always with the same result. I simply want the file to open up in the same window.
View 2 Replies
Similar Posts:
Oct 13, 2009
simple i got a script that open the a hyperlink in a new window, what i want is to open the hyperlink in the same window
Code:
a1.addEventListener(MouseEvent.CLICK, goWhere1)
function goWhere1 (evt) {
var url = "inisial.php"
navigateToURL(new URLRequest(url))
}
View 1 Replies
Jan 14, 2011
I understand that the code below should work but it doesn't, I have to take the underline before self out, for the hyperlink to work at all, and then it creates another window for the file. There may some sort of glitch that I am not aware of. But the code below does not work as is in my app.
var t:TextField = new TextField();
t.htmlText = "hello world"+ "<a href='weeTestPage.html' target='_self'><u>click here</u></a>";
t.autoSize=TextFieldAutoSize.LEFT;
addChild(t);
View 1 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
Jan 21, 2005
i have a standalone exe flash file which opens autorun from a cd, and i need to open a windows browser directly from that flash. i want it to open the htm without any toolbars or scroll.
View 1 Replies
Jan 21, 2005
i have a standalone exe flash file which opens autorun from a cd, and i need to open a windows browser directly from that flash. i want it to open the htm without any toolbars or scroll...
View 1 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
Oct 13, 2009
I'm trying to create a page where you click on the video thumbnail and the video opens up in its own window. I'd like the video to open at a specific size that I determine, not the browser, and I want it to be scalable. Here is what I have so far as a test file[URL]
View 2 Replies
Sep 3, 2011
I have a button in a swf file. I would like that when the button is pressed a swf loads in another window (want to call a new swf in new window.).
I was trying something like:
MYBUTTON.addEventListener( MouseEvent.CLICK, MYBUTTON_link );
function MYBUTTON_link(e:MouseEvent):void
{
var urlRequest:URLRequest = new URLRequest("external.swf");
[Code].....
View 1 Replies
Mar 25, 2009
I'm pulling data from an XML file into dynamic text fields in Flash. I have a field where I want to pull in a different url for each node, but display the same text and I'm not sure how to set that up.
View 4 Replies
Mar 14, 2009
i want to open a SWF file to a button but in a completely new window however Im not talking web related i.e. not linking to a web page
like...
on (release) {
getUrl("www.blah.com")
}
whateva it is...don�t want that... I want it so it simply opens a completely new window within flash which I can close... the reason for this is I have a SWF file which is protected and i cant create a back button within it... so I need it to open a completely new window so i can get back to my main page..
View 1 Replies
Feb 28, 2010
I am trying to make a webpage in flash and I´m almost finished. However my problem is this: I have a page with 6 text links and when clicked I want them to open an html file in a new window. Here is the code
christian.addEventListener(MouseEvent.CLICK,onMouseClick);function onMouseClick(e:MouseEvent):void{ var request:URLRequest = new URLRequest("christian.html"); navigateToURL(request,"_blank");}
This works fine, but how to I code the 5 other pages?
[Code]...
View 1 Replies
Apr 30, 2009
I have a flash website at the moment which is my index.html file, i wish to open up a new window and launch a new swf file from this window ( the file will be a new dreamweaver page)[URL]the code i have at present in my main file is:
Code: Select all
images.onRelease = function () {
getURL("http://www.mydomain.com/images.html/", "_blank");
[code].....
View 1 Replies
Jun 1, 2007
I'm constructing an enhanced CD menu in Flash. I'm going to be including some desktop backgrounds that I would like people to be able to click on and then save the file from the CD to a location of their choice.
Is there a way to do this - access the files system as you would when you choose a file to upload but instead are choosing a location to save that file too? And then copy the file from a Cd location to this chosen loaction.
Or alternatively is there a way to just open a pop up file window in a certain location.
View 4 Replies
Sep 13, 2011
have some ppsx files that I'm opening from a button on a fullscreen window. The first window opens fine, but if I go to open another ppsx file, it opens behind my fullscreen interface. Is there anything I can to do force it to open in front? I tried having _blank in there, but that just opens a browser window. this is what I have now (using greensock plugins, but my question is regarding the navigate to url area):
[Code]...
View 1 Replies
Feb 24, 2011
I have a swf embedded into a course and when a certain button is clicked, it needs to open a new blank window where it plays an FLV file with whatever width and height i specify.
View 1 Replies
Jan 17, 2007
getting a PDF file to open in new browser window from Flash?For example:
Code:
getURL("test.pdf","_blank");
I have a client using IE7 on XP that says they see a brief popup that disappears before it is rendered. No error message is received.She is able to open a PDF from a plain html page
Code:
<a href="test.pdf" target="_blank">link</a>
Should I try converting getURL's to javascript calls?
View 2 Replies
Aug 18, 2010
1. How can I make msgA[3] text #C0C0C0? 2. How can I make mgsA[3] open in a new window?
var format1:TextFormat = new TextFormat();
format1.bold = true;
format1.color = 0x666666;
format1.size = 15;
[Code]...
View 4 Replies
Nov 27, 2009
I would like to force a pdf to be saved to disc rather than opening in a browser window? I am actually executing the command in flash in a button instance like this
on (release) {
getURL("http://website.com/pdfs/pdf_document.pdf", "_blank", "GET");
}
So how can I do this so it gives the pop up window of save to disc option?
This may be an ASP.NET issue too?
View 0 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
Feb 9, 2010
In this code:
[Code]....
What code and where do I put it to open this link in the same window?
View 4 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
Jul 9, 2010
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?
View 2 Replies
Apr 2, 2009
I am currently struggling with an error which is occurring on what should surely be the simplest of tasks. All I want to do is open a text file but I constantly get the following error: Error #2032: Stream Error
After searching the web for over an hour I just cannot find a solution to this problem. My conclusion is that I have a security issue and the error is occuring because I do not have permissions to access the file
The code is as follows:
import flash.events.*;
import flash.net.*;
function dataChanged(event:Event):void
[Code]....
View 2 Replies
Dec 16, 2009
I tried to search this forum but its goes to a blank white page??Anyhow I'm trying to open a remote text file, the code below works locally I need to make this open from a remote server with a specified URL.
Ext_text = new LoadVars();
Ext_text.onLoad = addText;
Ext_text.load("ContactUs.txt");
[code]......
View 0 Replies
Oct 10, 2006
Im trying to open an external text file with the help of button. It works locally on my computer. But as soon as i upload it on my site, it does not work any more. Im not sure, if im putting the wrong path.
on (release) {
_root.flying_pages.empty_holder.loadMovie("1.jpg") ;
loadText = new loadVars();
[Code]....
View 1 Replies
Nov 3, 2010
I have an AS3 flash movie and each page is a new frame. On my pages are dynamic scrollable text boxes that I created with the text tool. I would like to be able to make a piece of text a link (ex. click here for prices) so that it will direct the view to another page (label). I cannot figure out how to do so.
View 2 Replies
Mar 24, 2011
I have a FLA file that when I open it and I rollover any title in a palette window all the text in that and every window disappears. For instance the title "Timeline" will vanish. And most of the text in the palette vanishes, for instance all the text in the properties panel disappears like "Position and Size". This does not occur with any of my many other FLA files. I have had some issues with fonts lately. After deleting some bad fonts, my FLA ask me to remap some fonts, which I do. Everything in the FLA appears to be working fine.
View 2 Replies
Jun 26, 2009
Does anyone know how to create a hyperlink on an swf file? i think it can be done using actionscript during the creation of the fla, but i want to see if it can be hyperlinked AFTER creation, just using the website code.
View 11 Replies