ActionScript 3.0 :: NavigateToURL And Firefox Pop-up Blocker?
Mar 3, 2007
im using this code
Code:
navigateToURL(new URLRequest("http://www.knorcedger.com/"), "_blank");
and i use firefox, which blocks flash from opening a new tab. I read around internet, and i find out that it may be possible to make it work with javascript.
View 3 Replies
Similar Posts:
Jul 15, 2009
Clicking the button sends the text to a backend server where it does a profanity filter.I'm using an event listener to get a response from the back end. If there is no profanity, the swf does a navigateToURL.Unfornetly the url request is blocked by many browsers.When I skip the profanity filter and the navigateToURL is fired in the MouseEvent function then it doesn't get blocked
View 9 Replies
Aug 27, 2009
I have come across the problem where If i am using firefox and in fullscreen mode, any link i try to go to, using navigateToURL or even and ExternalInterface.call end up getting blocked by firefox. When i click the same link if I have not gone into fullscreen the links work fine. I have tried a few things but have come up empty. ( having the button exitfullscreen then making the link call being one )
Has anyone else come across this problem? It only happens in firefox, IE and Safari the links work in fullscreen fine.
View 2 Replies
Apr 22, 2010
I'm working on a website in php made for local Thai people. The website somehow uses links with Thai characters in them. The problem is when I click the link in flash it navigates to instead of "http://localhost/THAI TEXTS-108-0-region-3.html". When I tested this with Internet Explorer, it understands the unicode text in a link and navigate me to the correct link. In fact the flash understands the thai unicode characters because when I tried to create a dynamic text field, it could print out the correct thai characters on the flash.So it seems to be that this is the problem with flash failing to talk to Firefox API. I'm guessing either URLRequest object or navigateToURL function does not take unicode texts
btn_north.addEventListener(MouseEvent.CLICK, eventLink_btn_north);
function eventLink_btn_north(event:MouseEvent):void {
var url:String = "/THAI TEXTS-108-0-region-3.html";
[code].....
View 1 Replies
May 20, 2011
my intro movie is supposed to open the main website when it is finished playing. it does open the main site, but in a new window and pop up blockers have to be disabled for it to work (Internet explorer and fir fox). here is the code i used for the flash intro.
import fl.video.VideoEvent;
function showMessage(e:Event):void {
trace("Finished");
[code].....
View 2 Replies
Nov 7, 2007
I'm playing an flv file inside flash player (swf). I want to open a pop-up window if user clicks the movie. I'm calling a js window.open function from the flash file (by onRelease event), but the bloody IE pop-up blocker blocks my pop-up. What can I do in order to pass this pop-up blocker?
View 3 Replies
Oct 12, 2005
how to detect pop-up blockers? I just visited a site that has a very nice way of detecting if the client's browser has pop-ups blocked.
http:[url]....
It presents the visitor with an alternative page with a message that informs the user about the pop-up blocker and gives them a link back to the home page. I think the alternative page is http:[url]....
View 3 Replies
Mar 31, 2011
My application pops up help windows outside of flex on several occasions. I need to warn the user to allow pop ups from my app if they have the pop-up blocker on. Does anyone know how to determine this from inside of flex and then how to have the browser pop up the "allow pop ups from this site" thing after that?
View 3 Replies
Aug 5, 2005
I have seen popup blocker detection script in Javascript that will alert folks that a window did not launch due to a pop-up blocker. What I was wondering is, is it possible to detect that within flash and play a movie if a popup blocker is enabled? I need to forewarn folks that certain areas of this flash site require popups and that they have them blocked currently.
View 7 Replies
May 10, 2010
I'm busy with making a XML banner in AS3. It worked so far with the following code:
Code:
Select allvar xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest("private"));
function LoadXML(e:Event):void {
[Code] .....
And it worked! It bypassed all the browsers popup blockers, but it brought in some new problems. Every time the .swf loops. The addeventlistener adds a listener. So if the .swf loops 5 times it will open 5 windows when I will click it. I've tried to use removeeventlistener but with no success so far. In the code without the popup bypass this problem didn't occurred. Probably due the new URLRequest. But I don't know how to use this in the javascript. The other problem is the string of the link. For some reason javascript deletes parts of the link when there is an question mark in it. Example:
If the link is [URL]
The link what will open is: [URL]
View 5 Replies
May 3, 2010
PHP Code:
var xmlLoader:URLLoader = new URLLoader() var xmlData:XML =new XML(); xmlLoader.addEventListener(Event.COMPLETE, LoadXML); xmlLoader.load(new URLRequest("private"));
[code].....
View 2 Replies
Nov 16, 2006
I came across the following javascript code that creates a fullscreen pop up window from a rollover button (html/javascript) that appears to be unaffected by popup blockers in IE (or at least on my computers it's unaffected). However, when I adapt the button code to actionscript for use with a flash button it starts to trigger the popup blocker. figure out the correct actionscript to make this work without being blocked?
[Code]....
View 3 Replies
Jul 21, 2009
works perfect on my macbook pro (safari, firefox, and opera) but when I view the site on Vmare Fusion Windows XP and use IE and FireFox the pages don't load... I don't know what to make of this. Has anyone hear or seen anything like this happen before? BTW the website was created in Adobe Flash CS4/ AS 3.0 and published using Flash Player 10.
View 2 Replies
Sep 29, 2010
If a user has a pop-up blocker on, will it effect pop-ups within a Flex application. If I use the PopUpManager class in my app, is there the possibility that it would be blocked.(I'm writing about pop-ups within the app, not advertising pop-ups and pop-unders.
View 1 Replies
Jul 31, 2009
i have an xml file and i have created a gallery that loads thumbs at the start.what i want is that when user click on one of the thumb then it should open the big picture in another browser. i actually use it for swf files. swf files will be loaded in other window. my code is here
Code:
var xmlLoader:URLLoader = new URLLoader();
var imageLoader:Loader;
var xmlList:XMLList;
[code]....
View 0 Replies
May 1, 2009
PHP Code:
var req:URLRequest = new URLRequest ("http://localhost/SE/processimage.php");
var vars:URLVariables = new URLVariables ();
vars.awd = "awd";
[code]...
When I load that url the variable is sent using the GET method instead. It appears in the url in the browser and the browser shows an error first then "awd", meaning it worked for $_GET. I tried both req.methods and tried adding "_self" and "_blank" and also on different browsers. It still uses GET.
View 2 Replies
Feb 4, 2010
I'm having problems with creating a for loop to work with my CLICK state with navigateToURL.Can someone please show me the ways of my errors. I'm sure it is simple. Been out of the game for a while and coming in new to AS3. The roll states work fine.[code]
View 8 Replies
Jan 2, 2011
currently i have the main scene and within this scene i have a button with the value bg_src Also in the scene is a movieclip containing several frames, each frame with a different image and stop();, a different button simply tells this movieclip to go to the next frame, the last frame in that movieclip returns it to the first frame, so it will continuously loop through the images when the button is clicked, one image at a time.
Problem i am having is that i want the button with the value bg_src to link to the original source of the background images when it is clicked, whilst remaining part of the main scene and not within the movieclip.
lets assume image1 was [URL] and image2 was [URL] clicking the background change button would switch the background image to the second image, and the background source button would then, instead of opening a new page to[URL] when clicked, would then open a page to [URL]instead.
The code i have thus far is as follows :
Code:
bg_src.addEventListener(MouseEvent.CLICK, onBgsrc, false, 0, true);
var buttontext:TextFormat = new TextFormat();
buttontext.font = "Verdana";
buttontext.color = 0x424647;
[code]....
View 2 Replies
Feb 23, 2011
So I googled this problem and found like 3 threads with the exact same problem and what fixed their problem didn't fix mine, plus those threads are pretty dated. So I thought I'd get a more up to date answer.
[Code]...
When I load that url the variable is sent using the GET method instead. It appears in the url in the browser and the browser shows an error first then "awd", meaning it worked for $_GET. I tried both req.methods and tried adding "_self" and "_blank" and also on different browsers. It still uses GET.
View 4 Replies
Feb 14, 2009
I'm having problems with my animation getting cut of by my navigateToURL code. What is supposed to happen is,If you click on "buttonBtn" it triggers a animation. At the end of the animation it is supposed to stop and bring up a url. I've used gotoAndPlay ("frm") and navigateToUrl. Each time I test it in the browser the animation will begin, but the url comes up before the animation is finished. How do I allow the animation to play all the way through and then retrieve the url?
stop();
//SimpleButton ButtonBtn;
function handleClick( pEvent:MouseEvent):void
{
[code]....
View 9 Replies
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
Nov 2, 2008
This is the code I want to use to direct a user to a different web page-
function linkToBiblioteca(event:MouseEvent) {
var request = new URLRequest('www.biblioteca.buap.mx');
navigateToURL(request,"_blank");
}
- but it trys to open inside of my directory. How can I avoid this?
View 3 Replies
Nov 23, 2008
I'm kinda new with Flash but I've managed to create a menu for a homepage. Now when I click on one of the menu links - the page opens up in a new window. But I don't want that at all. I want the page to open up in another frame called mainframe. I've tried a number of things already; changing from "mainframe" to "_mainframe" and back, trippelchecking that the frames name really is mainframe so there's no typo. I've also changed the name of the mainframe both in the htmlfile and the code but that didn't work either.
Here's my code:
var linkabout:URLRequest = new URLRequest("about.html");
//...// function aboutClick(event: MouseEvent):void {
if(subDown[1] == true) {
//true = submenyn ¤r nere o ska upp
subAbout_mc.gotoAndPlay(15);
[Code] .....
View 8 Replies
Apr 2, 2010
On a game we just completed in Flash Builder 4, there are a couple of links like this:
var sponsorLink:String = http://www.plantersplace.com/;
navigateToURL(new URLRequest(sponsorLink), _blank);
IE 7 in some installations is treating this as a popup. Firefox 3.6, Chrome 5, Safari 4 all fine.
The game in question is at [URL]
Click "continue without logging in, then click "show hint". Click the hint. This should fire the above code and open a new window.
Several users in IE report this gives them a pop up alert. I am trying to find out why and what can be done about it. I have tried the solution I found at Zorked but people STILL say they are getting popup alerts.
View 1 Replies
Jun 30, 2010
I have a question: The following code, which works OK in Firefox and Safari, gets IE8 to throw a pop up block The simple code:
[Code]...
View 3 Replies
Sep 14, 2010
I had developed a whole series of tutorials using Flash CS4 (AS3). To load various modules I used the the following code:
Button_btn.addEventListener(MouseEvent.CLICK, btnClick);
function btnClick(event:MouseEvent):void
{[code]...
This works great with CS4 but when I stated using CS5 and exported my swf files, it stopped working. It seems that its trying to find the page over the internet and not the local directory anymore.
View 2 Replies
Jul 14, 2008
I'm fairly new to actionscript. I have created a flash banner ad that is now hosted on a site. Whenever somebody clicks the banner IE responds witha a "pop-up blocked"!
The code that handles this is:
ActionScript Code:
clicky.addEventListener(MouseEvent.CLICK, gotourl);
function gotourl(e:MouseEvent):void {
if (root.loaderInfo.parameters.clickTAG.substr(0,5)=="http:") {
navigateToURL(new URLRequest(root.loaderInfo.parameters.clickTAG),"_blank");
}}
Where "clicky" is a SimpleButton that covers the entire flash. clickTAG is passed as an argument as to where to navigate. If I allow pop-ups everything works as it should! Howvere disabling pop-ups shouldnt be needed - and i see that other flash ads on the site works without and pop-up warning.
View 9 Replies
Feb 12, 2009
I am using the following line of code in my Flash movie: navigateToURL(request,"_blank");However, when I am using Internet Explorer 7 (with tabbed browsing enabled), and this code is called to open a link, the link is opened in a new tab, but IE7 does not switch you to view that tab as you would expect!When I open a link in a normal web page in IE7 (and the link opens in a new tab because _blank was specified in the HTML code for that link), IE7 will switch you to that new tab to see the web page you just opened, so why does it not happen when using Flash?I know that within the settings for IE7, there is a setting that you can tick that says, Always switch to new tabs when they are created, and this solves the problem. However, many web site visitors will not have this ticked.How can I make sure that when a user opens a link in a new tab from my Flash movie, IE7 switches to that tab?I am using ActionScript 3.0 and Flash CS4.
View 1 Replies
Feb 15, 2009
Maybe someone in this forum can give me some help. Here is what I'm trying to do... I have page that when you click any of the buttons, it triggers the same animation. Now, depending on which button you click, it will take you to a different url. My problem is, with the code I have, the animation gets cut off before it's finished and goes straight to the url. I know I need some type of listener or something to watch for the end of the animation before going to the url. I can't seem to figure out what that code is or where it needs to go. Also, my animation is not in a movie clip. It's all in Scene 1. I've got the following script in the first frame of the actions layer. I'm only about three weeks into self-teaching AS3, so tell me like a third grader what is up.[code]
View 1 Replies
Sep 18, 2009
I want to call another web page from flash, passing one parameter to it. I'm using the following code:
ActionScript Code:
var request:URLRequest = new URLRequest();
request.url = "index.html";
request.method = URLRequestMethod.GET;
request.data = new URLVariables("section=games");
navigateToURL(request, "_self");
[Code]...
View 7 Replies