ActionScript 3.0 :: Links Opening In New Window Even With Target _self?

May 5, 2009

I'm working on a SWF that is a banner on a home page and the is opening links a new window despite my attaching the "_self" argument to the navigateToURL command.Like here is a snippet of code TO ME it looks right:

PHP Code:
var link_001:URLRequest = new URLRequest("http://www.lcc.edu/schedule/");button_001_btn.addEventListener(MouseEvent.CLICK,

[code]....

View 3 Replies


Similar Posts:


ActionScript 3.0 :: NavigateToURL Opening In New Window Even With _Self?

Feb 18, 2009

Strange Behavior in a flash I'm working on. And I must be doing something wrong because I can reproduce it in every flash I create. You can check out the behavior here at a test page on my under construction site:I have a menu bar at the top of the page, with the following code:

btnHome.addEventListener(MouseEvent.CLICK,btn1Clic kHandler);
function btn1ClickHandler(event:MouseEvent):void{
navigateToURL(new URLRequest("http://www.i2ctech.com/"),"_Self");

[code].....

View 2 Replies

ActionScript 3.0 :: NavigateToURL Opening In New Window Even With _Self

Feb 18, 2009

Strange Behavior in a flash I'm working on. And I must be doing something wrong because I can reproduce it in every flash I create. You can check out the behavior here at a test page on my under construction site: [URL]I have a menu bar at the top of the page, with the following
code:

btnHome.addEventListener(MouseEvent.CLICK,btn1ClickHandler);
function btn1ClickHandler(event:MouseEvent):void{
navigateToURL(new URLRequest("
http://www.i2ctech.com/"),"_Self");

[Code].....

If I open up a web browser and then click the menu buttons, the buttons open the link up in a new page. Once the NEW page opens, the menu buttons start acting as I would expect, then opening any further links in the same web page. Is this some internet explorer security setting? Every computer that I have utilized (total of 5) to view the web page exhibits this same behavior.

View 13 Replies

ActionScript 3.0 :: Even With _self Set Links Still Open A New Window

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

NavigateToURL - Code Not Opening Website In The Same Window Using "_self"

Jan 22, 2011

code not opening website in the same window using "_self" I'm using a button called B_btn and a navigateToURL command on MOUSE_UP.

Code:
B_btn.addEventListener(MouseEvent.MOUSE_UP, getPage);

function getPage(Event:MouseEvent):void
{
navigateToURL( new URLRequest("http://www.google.com"),"_self");
}

I'm just checking the swf in Flash CS5 using ActionScript 3, publishing with command+F12 (key command on Mac OSX), but that alone should work right without exporting? And to go a little off topic, could someone kindly tell me how to embed the swf as HTML code, as I'm trying to setup this swf as an intro to my website and need to embed it as HTML for my index.html page.

View 1 Replies

ActionScript 3.0 :: "_self" Not Opening URL In Same Window?

Jul 13, 2009

however, I have successfully changed the following script from AS1 to AS3. All is working with the exception of the "target". When I use "_self", nothing happens. However, when I remove _self and click on the button (image), it opens a new window.

All of the tut's I have followed have suggested the same thing, but it is not working for me.

Here is the URL in question: [URL]

And, the AS (below) I'm using. The first block of code is another attempt at correcting this, however, you'll see that it is commented out.

[Code]....

View 3 Replies

ActionScript 3.0 :: Open Links In Same Window ("_self" Does Not Work)

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

IDE :: "_self" Not Opening URL In Same Window?

Jul 13, 2009

not very fluent with AS3, however, I have successfully changed the following script from AS1 to AS3. All is working with the exception of the "target". When I use "_self", nothing happens. However, when I remove _self and click on the button (image), it opens a new window.All of the tut's I have followed have suggested the same thing, but it is not working for me.And, the AS (below) I'm using. The first block of code is another attempt at correcting this, however, you'll see that it is commented out.

stop();
//actions to redirect user to new page in same window
/*var link:URLRequest = new URLRequest("http://thejournal.com/microsites/govconnection/21st-

[code].....

View 1 Replies

Professional :: Opening Links In Same Window

Jan 4, 2011

using the following action script on buttons to open links:URL...Trouble is they all just open new windows and not the link in the current window!

View 3 Replies

Actionscript 3 :: Stop Links Opening In New Window?

Feb 14, 2011

The links I have in my .swf keep opening in new windows/tabs rather than the same one, how can I make it open in the same tab? Here's my actionscript 3 script:

aquaheal.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_2);
function fl_ClickToGoToWebPage_2(event:MouseEvent):void {
navigateToURL(
new URLRequest("http://www.mediwales.com/index.php?id=6&member=9"), "_self");
}

View 1 Replies

ActionScript 3.0 :: 'new Window' Links Opening BEHIND Full-screen Flash

Aug 7, 2009

I'm working on a site that's intended to display full screen. At present the initial HTML page has a "launch site" link which pops up a fullscreen window (via javascript window.open) with our Flash content.Once in the Flash site, all URLs that point at off-site destinations are set to open in a new window ("_blank" as the target - either an href in text, or via navigateToUrl). In Mac Firefox the new window opens BEHIND the full-screen Flash (as a new tab in my case). In Windows FF and IE, and Mac Safari, the new window pops in front of the fullscreen Flash.Is there a way to make the non-fullscreen window pop in front of the fullscreen Flash? I'm using swfobject 2.1 - perhaps I need to use an externalInterface call...thoughts?

View 0 Replies

Actionscript 3.0 :: NavigateToURL - Navigates To A URL With A _self Target

Mar 1, 2010

I have this site I am updating and I have a little issue. I made a button that navigates to a URL with a _self target. Well, in the script, i have it like this:

Code: Select allclickhere2Btn.addEventListener(MouseEvent.MOUSE_DOWN, myHandler);
function myHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("https://app.playmakercrm.com/register/eNortjK0UjJWsgZcMAkeAcs!"), "_self");
}

the "_self" isn't working on the page, but when i take out the target, it works just find, it opens in a new page which i don't want. You can check it out here Code: Select [URL] and watch that flash header for about 30 seconds, theres a button at the end that reads "Click Here" try clicking on that and it wont take you to the URL.

View 1 Replies

ActionScript 2.0 :: Make TextField Clickable Links To _blank Instead Of _self?

Feb 7, 2007

When a user clicks on a URL, I want the new page to open up in a new window (or tab),instead of always in _self, which of course replaces the movie. I've trace'd the htmlText contents, and see TARGET="" where it's building the clickable links, which I assume the browsers interpret as the same thing as _self. Is there some better way to change the target for any URLs, short of doing a search and replace of the htmlText field

View 9 Replies

ActionScript 3.0 :: Made A Button That Navigates To A URL With A _self Target?

Mar 1, 2010

I made a button that navigates to a URL with a _self target. Well, in the script, i have it like this:

Code:
clickhere2Btn.addEventListener(MouseEvent.MOUSE_DOWN, myHandler);
function myHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("https://app.playmakercrm.com/register/eNortjK0UjJWsgZcMAkeAcs!"), "_self");
}

the "_self" isn't working on the page, but when i take out the target, it works just find, it opens in a new page which i don't want.You can check it out here

Code:
dev.myhomecaresalescoach.com

and watch that flash header for about 30 seconds, theres a button at the end that reads "Click Here" try clicking on that and it wont take you to the URL.

View 1 Replies

ActionScript 3.0 :: Link To Url, "_self" Is Opening A New Page?

May 13, 2010

I am trying to get my button to navigate to _self and the link is opening a new page. Is there something wrong in my code?

my_btn.addEventListener(MouseEvent.MOUSE_DOWN,[code].....

View 5 Replies

ActionScript 3.0 :: Hyperlink Text Will Not Work With _self, Only As Self And Then Creates Window?

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

ActionScript 3.0 :: Opening Links From XML?

Jan 4, 2010

I am currently building a XML gallery. The thumbnails are created inside the FLA file, and it's driven with a XML file. When a thumbnail is clicked, it will bring up the Detail movieclip. And inside the Detail movieclip, I've created some buttons with an external class of "DetailButtons". Inside the DetailButtons class, the buttons dispatch a custom event that the FLA is listening for. The problem is I can't figure out how to have one of the buttons open the corresponding url link in the XML file. I just keep getting the 1069 error.[code]

View 13 Replies

Professional :: Links Opening In New Windows?

Jan 16, 2011

I'm relatively new and I've made a script on my banner for buttons to link internally to different pages on my webpage. The problem I'm having is every time I click on a link it directs me into a new window, it will redirect in the same window and new tabs wont keep poping up? The website is [URL] if you want to see the problem I'm having.
 
stop() 
road.addEventListener(MouseEvent.ROLL_OVER,play1);
function play1(event:MouseEvent):void{    gotoAndStop("specroad");

[Code]....

I've tried a few things but I can't get anything to work. I shouldn't have any trouble fixing the rest of the script!

View 1 Replies

Opening Link In Target

May 21, 2010

I have a flash menu which i'm trying to get to open in a target "_ibody".The default code for a button is:[code]

View 2 Replies

ActionScript 3.0 :: Flash - MySpace And Opening Links

Jan 17, 2010

I'm having trouble making Flash open any links when embedded into my MySpace profile. I'm developing a MySpace profile layout that uses embedded SWF movies in custom created DIVs. Everything was going great. Things were loading into place and I managed to get my homemade Twitter widget to update perfectly using a crossdomain.xml.

The one problem I can't seem to address is the 'opening links' issue. Upon searching for the last couple of days, I came across some articles that claim MySpace blocks "navigateToURL" commands. Also found out a workaround that involves placing a transparent GIF over the area which is supposed to be clickable, but I still have hope that such a basic function as clicking a button within an embedded SWF in MySpace and opening said link can be achieved.

View 2 Replies

ActionScript 3.0 :: Combo Box Not Opening Links In Browser

Mar 22, 2010

I am using the Combo Box Component.I gave the combo box the instance name myComboBox I added a few labels and web address's[code]...
 
Does anyone know what causes this and how to stop it from coming up so that the combo box works and takes you to the right web page?

View 2 Replies

Professional :: Links Opening To Same Popup - How To Give Each Its Own

May 18, 2010

Each page has like the first page "Welcome" followed by a brief paragraph followed by a "read more..." link/button which opens to a small popup window with additional 3-4 paragraphs. So the main page has "WELCOME" > small paragraph > read more button.

Below that has "LATEST WORKS" > small paragraph > read more button

Both of those "read more..." lead to the same popup window but have their own title "Welcome" and "Latest works"(don't know where the mini title file is) but the paragraphs are the same which I don't want. I want each "read more..." to open to its own little popup.

Still learning script but is their anything in the script to change or something on stage? Or just redo everything somehow
on (rollOver) {
gotoAndPlay("p1");
} on (releaseOutside, rollOut) {
gotoAndPlay("p2");
} on (release) {
_root.popup.gotoAndStop(2);
_root.popup.label.text = i;}

View 1 Replies

Actionscript 3 :: Bypass IE Popup Blockers When Opening Up Links In Flash?

Feb 11, 2010

This is the Class I'm using to bypass the popup blocker. This is the function to call to the class function

function linkHandler(e:MouseEvent):void{
popup.ChangePage(linksURLArray[e.currentTarget.name], "_self");
} this is the class.

[Code]...

View 1 Replies

ActionScript 3.0 :: How To Target Links And Thumbnails

Apr 23, 2011

So I'm working on this "Links" page on my site, and I've run into some trouble that I haven't been able to get past for a few weeks (due to lack of time working on it!). I want the page function to be such that when you mouseover a link a thumbnail will show up in the box to the right, like in the picture. When the mouse then moves outside the link the thumbnail should fade out again. This I thought was supposed to be a simple task

I am using AS3, Flash CS5 and I have loaded the link texts and thumbnails from an XML file. In order to get the hand cursor when hovering over the links I put them inside a sprite, which causes the same problem I am having with the thumbnails, which is this;

[Code]...

View 21 Replies

ActionScript 3.0 :: Opening A .swf In A New Window?

Oct 29, 2009

I've got a .fla file, with 3 scenes in it. In the 3rd scene, there's a button which upon clicking it, should open a new window showing a external .swf file. Both files are placed in the same folder.

Now.. I'm able to open the .swf file in a browser, but what im trying to do, is open it in flash player. How the *#@%*#@ am i supposed to that? :P

Oh yeah, i should probably mention that the external .swf file also has mulitple scenes and buttons. And both "movies" should still be interactable when i open the new window.

View 6 Replies

IDE :: GetURL Always Opening In New Window

May 25, 2009

I can't seem to get the buttons I have created in flash to open in the same window.. I've tried
1. leaving it with no target
2. on (release) {
getURL("[URL]");
targetPath("_self")
}
3. on (release) {
getURL("[URL]", "_self");
}

View 2 Replies

ActionScript 3.0 :: Opening A Pdf.swf File In Its Own Window?

Dec 2, 2010

im having no luck with this at all. im building a site for my company, building and selling homes. ive made a website in flash, nothing too complex, ive also made a pdf in indesing, which when published left me put a page turing feature on it, and that pdf was then published as a swf file. its put all the code in for me automatically so the people can now interact and page turn it.i simply want a button/link i can put on my site to open this swf in its own browser window or in a flash player window. this code in previous versions of flash has been easy...on release etc but now with as 3.0 i see people using child, navigatetourl, its so confusing and every example ive found just doesnt seem to work

View 14 Replies

ActionScript 3.0 :: Opening New SWF File In Same Window

Jul 1, 2009

The code, To open a new .swf file in the same window, like on my website when u click a button I want it to load another .swf file in the same window. Its either this or to make it open a new scene.

View 1 Replies

Flash :: Link In Keeps Opening In New Window

Sep 16, 2009

I have l a flash file in my pages that links to other pages within my web site but when clicked they automatically open in another window. How can I link them without opening a new window as would happen with a normal web page  link?
 
Here is my current Action Script code: index.addEventListener(MouseEvent.CLICK,indexbuttondown);
 
function indexbuttondown(event:MouseEvent):void {
var bbcURL:URLRequest = new URLRequest("index.html");
navigateToURL(bbcURL);
}

View 2 Replies

ActionScript 3.0 :: Opening A Link In A New Window?

Dec 5, 2009

I'm primarily an HTML/CSS girl.  I'm pretty new to Flash, and until recently have only worked from the timeline without using any action script other than stop(); and simple goto commands like gotoAndPlay(49);
 
This week, I needed a nav button to take the user into the site from the Flash intro; it's live at [URL]
 
Flash CS4, Action Script 3.  Since I don't write Action Script - yet - and needed the link in a hurry, I Googled for the code.  As you can see, it works fine, but the site opens in a new window, and I don't want it to do that, I want it in the same window.
 
The code is as follows:
 
clickToEnter.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void  {    
navigateToURL(new URLRequest("http://www.deppimpersonator.com/cms"));
}
 
I thought it might be the use of "new" in front of URLRequest, but of course when I took that out the link didn't work at all.
 
Blind experimentation produced two attempts that simply broke the link (don't laugh ):
 
[Code]...
 
What do I need to add (or remove) from this code? And is this the most efficient way to code an internal link?
 
In case this is browser-specific:  I've only tested this in the latest versions of Firefox and Safari for Mac, OS X 10.6.2 (Snowleopard).  It's the same in both browsers.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved