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


Similar Posts:


ActionScript 3.0 :: NavigateToURL Doesn't Work After Publishing?

Dec 11, 2010

ActionScript Code:
function goSite(event:MouseEvent):void {
var myURL:URLRequest = new URLRequest("asite");
navigateToURL(myURL, "_parent");
}

It works perfectly fine when I test it, but after I load it onto an actual website it won't work anymore.

I searched around and the only thing I could find was somebody who said to set the publish settings to "Access network only"-- but it still doesn't work.

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

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 :: 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.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 :: Can't Get _self To Work On URLRequest

Aug 20, 2010

I've cobbled together a website for the family business using Flash CS4, but I'm having real trouble getting two interlinked .swf's to open in the same window. By the time you go from the homepage to the gallery and back to the homepage, you've got 3 tabs in the browser. How can I fix this? Here is my code.

ActionScript Code:
button4.addEventListener (MouseEvent.CLICK, onMouseClick);
function onMouseClick(e:MouseEvent):void
{

[Code]....

The code is the same (different URL, obviously) for both links, but they open new tabs every time.

EDIT: It seems to have fixed itself. Maybe it didn't upload right when I put it on the FTP. So all is well now!

View 0 Replies

Professional :: _self Does Not Work On Flash Button?

Mar 8, 2011

Im using this code on a nav menu i have created.

on (release) {
getURL("http://mysite.com", "_blank");
}

[code].....

View 9 Replies

ActionScript 3.0 :: URLRequest _self Property Won't Work, Because Of AllowScriptAccess?

Mar 24, 2011

Here I create a button that when pressed opens specifies web site:

Code:var adresas:URLRequest = new URLRequest("some web site adress", _self);
var item:Sprite = new Sprite();
item.graphics.beginFill(0x000000);
item.graphics.drawCircle(30, 30, 20);
item.graphics.endFill();

[Code]...

View 0 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 :: Can't Get Navigatetourl To Work

Mar 8, 2009

i've created a flash animation with as3. at the end of the timeline i've got a stop(); action on the last frame which is working just fine. on the following frame i have the navigatetourl action navigateToURL(new URLRequest [URL]} for some reason which i've been incapable of figuring out it will not automatically flip to the page i have written in my action when the animation has finished playing.

View 8 Replies

ActionScript 3.0 :: Failing To Make NavigateToURL Work

Jul 24, 2009

The main class shown below is showing a blank screen and is NOT navigating to [URL].

package {
import flash.display.Sprite;
import flash.net.navigateToURL;
import flash.net.URLRequest;
import flash.net.URLVariables;
public class NavigateToURL extends Sprite {
public function NavigateToURL() {
var url:String = "[URL]";
var request:URLRequest = new URLRequest(url);
navigateToURL(request); }}}

View 1 Replies

ActionScript 3.0 :: NavigateToURL Has Been Hacked (the Link Does Not Work)

Oct 28, 2011

We send SWFs out to other networks, and it seems that one of these networks has used our SWF, but they have prevented navigateToURL() from running. So no links work in the game (to give us traffic). How has this happened? Is there anything as a Flash Developer i can do to ensure a link works as i have never see navigateToURL intercepted before.

View 0 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 :: Use NavigateToURL Certain Layer / Instances Will Not Work Unless They Are Placed On Top Of The Other Layers

Oct 15, 2010

I am working on a simple art scroller that will scroll images across the screen. It is very simple but my problem is that when I try to use NavigateToURL certain layer/instances will not work unless they are placed on top of the other layers (except AS layer). Other layers seem to work perfectly fine under the other layers. All in all I have approx. 15 layers all with one piece of art, instances at all keyframes and a actionscript layer on top.

[Code]....

View 2 Replies

ActionScript 2.0 :: Dynamic Masks - Trail Doesn't Resize And The Mask Still Doesn't Work

Oct 16, 2009

I decided to try to use setInterval for myanimation, which is just a mouse trail.However, I'm trying to get teh mouse trail to be a dynamic mask.In my previous swf this was achieved by using a holder mc with the animation inside and then using this as the mask. But this time I just canpt seem to hit on the right way to get it to work. The code I am using for the mouse trail is:

Code:
var i:Number = 0;
var myInt:Number;
var t:MovieClip;[code].....

in the function, but now the trail doesn't resize and the mask still doesn't work.

View 1 Replies

ActionScript 3.0 :: Width Doesn't Work - How To Make It Work

Apr 21, 2010

I have a button object that I need to scale to align with the variable width of an array of images.However, when I set the width in code, the button does not actually become that width. Tracing out the width gives me the correct value, but on screen.. it's off.

I've proved it to myself by scaling the same button object manually in the properties pane and visually comparing. Both of the buttons below have a width of 410.

Code:
navigatorDown_btn.width = 410;
navigatorDown_btn.x = (stage.stageWidth/2)-(navigatorDown_btn.width/2);
trace(navigatorDown_btn.width); // output: 410

View 4 Replies

Flash :: Adobe Flex Page Doesn't Refresh When New Query String / MVC Parameter Entered

Oct 26, 2011

I am working on adding functionality to where the URL takes in a parameter as defined by an MVC style looking way.eg. (URL... )where 12345 is the corresponding Id number that I want to get.I have this functionality working.I am using Internet Explorer 7.My issue is that when a user attempts to enter a new query string id into the URL, the page doesn't refresh when the user hits enter or the refresh button. (The user can navigate to the url/#/Id/12345 only when opening a new window/tab)Does anyone know if this is a feature that doesn't work in Flex or if there is some code or configuration needed to allow this?

View 1 Replies

Swf Into Fla Doesn't Work?

Jul 23, 2009

I have a swf that is pretty complicated, you can interact with the page and go to different keyframes and it stops and/or starts depending on buttons, but I want to put it in a fla or something so I can put other swfs next to it and build it up and put several of them together as one.

I don't care about making it too complicated, I just want one interactive swf to go to the next compiled swf when that movie ends, but when I try importing it or loading it it just runs straight through without stopping or paying any attention to the scripting.

View 16 Replies

ActionScript 2.0 :: CS3 'if' Doesn't Work But 'else' Does

Apr 8, 2010

I am trying to more between frames using the data returned from a node n_EventID in an xml, when the node returns "1408" I want to move to frame 1 but if it returns anything else I want to move to frame 2. The part where the code moves to frame 2 seems to work perfectly but I can't seem to move to frame 1 when "1408" is returned.

xmlResultFinish = new XML();
xmlResultFinish.ignoreWhite = true
xmlResultFinish.onLoad = loadXmlResultFinish;

[code]....

View 5 Replies

Flash Doesn't Work On Some IE's?

Apr 14, 2010

I'm having a problem, where random IE's are not able to display my .swf file. All the IE's are IE8 with the latest flash pluggins and all security's are set at Medium, however some IE's get just a grey box and other's get the full flash file. What's going on? It works fine in Safari and Firefox of course, but why so much difficulty with AS3 Flash9 in IE? here is a link to the site, and it's the big image changer at the bottom of the front page.

[URL]

View 2 Replies

.swf Fullscreen Doesn't Work?

Nov 19, 2009

But my proublem is that I have a flash presentation.The defalt for moving the slide screens back and forth are left and right arrows.It works fine when tested or even the .swf fileBut then the left and right buttons don't respond when I go to fullscreen.

View 5 Replies

ActionScript 3.0 :: SWF Doesn't Work In IE

Dec 10, 2009

Is it common for AS3 apps to not work in IE? Is there a way to make them work? I have a movie clip in my library linked to a custom class Main and I have nothing on stage. Just one frame. Everything is built inside that movie clip. I add that movie clip to stage through a document class and everything works perfectly in Firefox and Chrome but when I open it in IE, it's just a blank page.

View 6 Replies

IDE :: Pop Up Doesn't Work In IE But In Safari?

Apr 12, 2007

i followed the instructions oh how to make a centered pop up window here :i'm using a mac..nd it works in Safari... but when i try to use explore to open it, the pop up window doesn't come up...why is that.......? did i do something wrong?here is my website:and please click on 'message' to see for yourself.

View 5 Replies

IDE :: Pop Up Doesn't Work In IE But In Safari

Jan 9, 2004

i followed the instructions oh how to make a centered pop up window here : [URL]

i'm using a mac... and it works in Safari... but when i try to use explore to open it, the pop up window doesn't come up..

here is my website: [URL] and please click on 'message' to see for yourself.

View 6 Replies

ActionScript 2.0 :: F8 DuplicateMovieClip Doesn't Work

Jan 15, 2009

this is what i have on the maintimeline:[code]I have 4 moveiclips called: redhex, bluehex, greenhex, and yellowhex.what the above code should do is make a 15x15 grid of hexes (yes i wanted all 4 hex mc's overlapping each other at each space on the grid.).Before i added the lines to dupllicate the blue, green, and yellow hexes also... the redhex movieclip duplicated exactly as it should.But after adding the lines to duplicate the blue, green, and yellow hexes also, in the same locations... Nothing at all showed up when i tested the movie (not even the redhex's)

View 4 Replies

ActionScript 2.0 :: Key.isDown Doesn't Work?

Apr 12, 2009

In the actions of a movie clip,I want to use something like:

PHP Code:
if(Key.isDown(W)){
//do stuff
}

But,it does not take anything else than LEFT,RIGHT and some others.I even tried ASCII:

PHP Code:
if(Key.isDown(100))
{}

It doesn't work.Then how do we use keys like W,A,S,D?

View 1 Replies

9-slice Scaling Doesn't Work

Sep 18, 2009

I've made a rounded rectangle with a gradient fill and another rounded rectangle over it with a transparency to create kind of a glossy effect. Both objects are part of a symbol in the library of the FLA file. Then, I activated the checkbox to create a scale-9 grid, and the Export for Actionscript checkbox in order to add this symbol from AS3. Next I made sure that every rounded corner was completely included in the slices on the edges of the grid. Well, no matter what, the object is scaled as a normal graph: the rounded corners appear bigger and deformed.

View 4 Replies







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