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


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 :: 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

Flash :: Opening Page In Same Window Using NavigatetoURL Function?

Jul 18, 2011

I have a flash code, in which i am loading images and opening urls through xml file, now it is opening in a different window(pop up window) but i want it to open in the same window.

var xmlReq:URLRequest = new URLRequest("XML/ImagesData01.xml");
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
xmlLoader.load(xmlReq);

[Code]....

View 2 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

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

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

Button Code Not Opening External Html Pages In Flash Website?

Feb 26, 2012

- I made a flash-based website using Flash CS3 and then embedded the file into a blank html page with Dreamweaver cs3.-All my buttons, linking, and content were made in Adobe Flash CS3 using ActionScript 2.0 (AS2).The issue I am encountering is that when i click on some buttons that have get URL codes, they will not load the html files assigned to the As2 code of the button. The html files are supposed to load in a separate browser window for each html page assigned to each button. The html files are located within subfolders in my Main Site Root Folder.All my AS2 code is Object-based; meaning I applied it directly to my button symbols.

View 4 Replies

ActionScript 3.0 :: NavigateToURL "_self" Parameter Doesn't Work?

Apr 12, 2010

I'm trying to use navigateToURL with the "_self" parameter for a website navagation menu, but all I ever get is the url opening in a new window or new tab (depending on what browser you are using). What I would like is if it opens in the same window within the browser. For html validation purposes; I'm using a javascript ufo 3.22 (unobtrusive flash objects) method of embed. Here is my AS3 code which is in a standalone file (hope I got all necessary import packages included).

[Code]...

I know it's something real simple and I've read many a posts that scream "allowscriptaccess" issues, but even when I set that I still can't get it working properly.

View 1 Replies

ActionScript 3.0 :: NavigateToURL "_self" Option Not Working?

Jan 28, 2009

I'm using the navigateToURL function in order to open a new html page. I want the new html page to replace the page that holds the swf. I'm using the "_self" option, but it's opening the window in a new tab in both FireFox and IE.

View 1 Replies

Actionscript 3 :: NavigateToUrl Is Not Opening A Web Browser

Mar 14, 2010

I have a textField on my stage named 'adBuy', which when clicked I want to open up my browser with the defined in URL request. However when I click on the 'adBuy' textField on my SWF it opens Coda, the piece of software I'm using to write this small piece of code?[code]

View 1 Replies

Actionscript 3 :: Opening A URL From Flash Using NavigateToURL?

Jan 10, 2012

Been pulling my hair out for hours today over this.I can't open another website from my already opened flash site.Here is the code:

GotoFB.addEventListener(MouseEvent.CLICK, gotoFB);
function gotoFB(event:MouseEvent):void
{

[code].....

View 1 Replies

ActionScript 3.0 :: XML NavigateToURL Not Opening The Correct Xml Url?

Jul 22, 2009

With this code my button which contains the navigateToURL function opens my browser toregardless of the url in the xml.my code and let me know if you can see the problem.

Code:
//variables:
stop();

[code]....

View 2 Replies

ActionScript 3.0 :: NavigateToURL - Get The Link To Open In The Same Window Instead Of A New Window

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

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

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 :: NavigateToURL Same Window?

Sep 8, 2010

How do I make it so it opens the link in the same window as opposed to a new tab?[code]

View 2 Replies

ActionScript 3.0 :: Open URL In Same Window With NavigateToURL?

Sep 5, 2007

Newb here. I have a button that links to an external website. HEre is the code I have.[code]...

When a user clicks on this button, the browser opens a new window. How do I make the browser open the new page in the same window? I'm sure it is simple; I just don't know the code. Also, is this the easiest way to create a link? It sure requires a good bit of writing.

View 8 Replies

ActionScript 3.0 :: Window Parameter In NavigateToURL Function?

Nov 1, 2008

I have a frame based HTML file in which my SWF is displayed in the left frame.My SWF file has a button that simply,when clicked,displays a HTML file in the "rbottom" frame. Following is the code I used:

var a:String;
function aboutmeClicked(evt:MouseEvent):void {
var targetURL:URLRequest = new URLRequest("resume.htm");
navigateToURL(targetURL, "rbottom");
}
aboutmeB.addEventListener(MouseEvent.CLICK,aboutmeClicked);

Unluckily, when the button is clicked at run-time, the "resume.htm" file is opened in a separate window rather than in the specified frame.

View 8 Replies

ActionScript 3.0 :: URLRequest - NavigateToURL To Open A New Browser Window

Mar 8, 2009

I have a embedded flash application that uses URLRequest and navigateToURL to open a new browser window. Basic code is:

[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

ActionScript 3.0 :: NavigateToURL Code Btns For Dreamweaver Frameset?

Feb 18, 2010

coypaste an AS3 bnt code to use in-conjunction with a Dreamweaver frameset.

View 10 Replies

Php - Opening Documents Inside A Website?

Oct 3, 2011

I want to know is there any flash viewer which i can embed on my website, for opening word, pdf files?

or is there anything else that i can put on my php website, that can view the document

View 1 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 2.0 :: Opening A Website From Flash And Changing Quality

May 12, 2007

Question 1: Basically I need to change the quality of the entire movie by actionscript.. Question 2: How do I open a website from flash like this: opens a new tab in your browser (like mozilla firefox) otherwise open a new browser (like internet explorer) and opens the website I imagine something like this

[Code]...

View 1 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







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