ActionScript 3.0 :: Using NavigateToURL And ExternalInterface.call Triggering Popup Blocker?

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


Similar Posts:


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

How To Bypass IE Popup Blocker

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

ActionScript 2.0 :: Popup Blocker Detection In Flash (FMX04)?

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

ActionScript 3.0 :: XML Banner With Variable Link (Popup Blocker Bypass)

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

ActionScript 3.0 :: XML Banner With Variable Link(popup Blocker Bypass)?

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

ActionScript 2.0 :: Flash Button + Full-screen Window = Popup Blocker?

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

Javascript :: Reference The Html Object That Made The Call To SomeFunction Directly Using The ExternalInterface.call Call?

Jun 28, 2011

i have some actionscript that makes a

ExternalInterface.call('someFunction');

call.is it possible to reference the html object that made the call to someFunction directly using the ExternalInterface.call call?

Assume that the object that makes the call also has some Callbacks (via ExternalInterface.addCallback) that are accessible via javascript.

Currently:

Actionscript source
ExternalInterface.call("someFunction");
ExternalInterface.addCallback("someCallback",someASfunction);

[code]....

View 1 Replies

Actionscript 3 :: ExternalInterface / NavigateToUrl Popups Blocked When Called From SetTimeout?

Sep 19, 2010

The Symptoms: pop ups intermittently blocked/let through from external interface and navigateToURL combinations.The Problem: Flash (or the browser..not sure) wont let pop ups be triggered outside of a time range and/or an event duration.The Environment: I have an app that needs to send data via zendAMF, do some processing and be sent back to the flash player. On the response, if certain conditions are met true - then trigger a pop open window. The same code that gets blocked on response, works directly from a mouse event trigger.So i set up a basic situation: 6 buttons, calling 3 methods. 3 buttons would call the method directly (all open the window perfectly) the other three would get the value of a numeric stepper, and use setTimeout(openWinMethod, NumericStepper.value) to simulate a delayed call from the zendAMF response.

UPDATE : if i select the 'navigateToURL, no delay' button first, close that window, then try any of the other delay calls - they work. its like the browser accepts that you have clicked to open a window at some point and therefore are allowed to call from a delay then on. (firefox only)All three using the delay would be blocked (firefox and chrome) whereas all three directly would open.afari - as well documented, would only work on the 2 methods using navigateToURLf interest: the js function in the html wrapper would be called be external interface to open a window. Without a delay this worked. With a delay, the js function would be called (as verified by some alert statements) but a new window was never spawned./popup/

here is my as3 class:
package
{

[code].....

View 1 Replies

ActionScript 3.0 :: Use Navigatetourl Without Popup Blocking?

Jan 4, 2010

I am having a terrible time trying to sort out a clickTag issue.

I have now decided in placing an embedded url within the flash file and use the navigatetourl code.

It seems to be blocked in IE.

View 0 Replies

Flex :: The Current State Of NavigateToUrl And Popup Blockers?

Nov 25, 2011

Apparently there's a problem with the nagivateToUrl function in Flex, namely that it tends to get blocked by the popup blockers in some browsers. A project I've recently joined is using a workaround for Firefox using browser sniffing, but a new feature would be a lot cleaner to implement if I could drop this. whether this problem still exists with current Firefox versions? What about Firefox 3.6?

View 1 Replies

ActionScript 3.0 :: Use ExternalInterface.Call To Call A JavaScript Function To Launch A Lightbox Window?

Jun 22, 2009

I'm trying to use ExternalInterface.Call to call a JavaScript function to launch a lightbox window. So far I have this:

AS3:
flash.external.ExternalInterface.call("launchLB", "" + aUrl + "");
JavaScript:
function launchLB(url) {
alert(url);

[Code]....

I get the alert but I can't get the lightbox window to display. When my as code makes the ExternalInterface call I get what looks like a page refresh and a blank browser window.

View 1 Replies

Flash :: Call Anonymous Function From ExternalInterface.call() Method?

Nov 4, 2010

I need to get a javascript var in my Flash application. I like to be able to just set a variable in the javascript (client constraints) rather than define a function.

Can this be done? I am trying to use the ExternalInterface.call()

AS:

ExternalInterface.call("function(){return window.someVar}", null);

JS:

var someVar = "Test";

This does not work and I suspect it is because the ExternalInterface.call() does not like the anonymous function.

View 2 Replies

Flash - Externalinterface.call Won't Call The JavaScript Function - Firefox 3.6

Feb 10, 2011

I have a function defined in JavaScript like so:

function fadeBack() {
alert("fadeBack called");
};

I call that function from my Flash file like so:

import flash.external.*;
flash.external.ExternalInterface.call("fadeBack");

This works in both Safari and Chrome, but for some reason Firefox won't ever call the function. Still, I can't figure this out. How can I fix it?

View 2 Replies

Flash :: Replace A URLLoader Call With ExternalInterface Call?

Feb 10, 2011

We have been given some code that does a URLRequest call which is really slow to respond, so I was looking to make it pull the data from the page, as it is already on the page.[code]I have tried to replace it with this (actionscript is definitely not my forte):[code]I am using addCallBack as that is what the editor suggested via autocomplete, unfortunately it doesn't seem to work. Unfortunately I cannot go back to the developer at this time.The error message is:Call to a possibly undefined method addCallback through a reference with static type flash.external:ExternalInterface

View 3 Replies

ActionScript 3.0 :: Call Javascript With ExternalInterface.call

Sep 29, 2008

I'm trying to call a javascript function from a flash movie. I'm using IE.

This one works:
AS3: ExternalInterface.call("test();");
Javascript:
function test()

[Code].....

...it says "undefined" insted of alert(666)...it seems that if i use a field in the function it simply stops working. (I'm accessing the page [URL]

View 2 Replies

Flash ExternalInterface.call In IE

Feb 21, 2010

I am having an issues with ExternalInterface.call to return a value in IE. It is working fine in Firefox. Eventhough I changed the "allowscript access" to "always", still it is not working. Is there any thing that I need to change in Flex or the HTML to make this work? or this is a security setting in IE?

View 1 Replies

ActionScript 2.0 :: Log Every ExternalInterface Call?

Nov 20, 2011

I'm wondering if you guys know a way to log every data coming to a flash 8 swf from its container?

I know that it is a bit weird, but I'm trying to figure this one out. Maybe one of you already faced a similar situation?

View 3 Replies

ActionScript 3.0 :: Call C++ Functions Using ExternalInterface?

Oct 20, 2009

I am trying to call a C++ function from actionScript3. using Programming ActionScript 3.0 > Using the external API > Using the ExternalInterface class > Calling external code from ActionScript,  I could call function from JavaScript .
 
it will be good if i could call C++ functions directly from Action Script.

View 2 Replies

ActionScript 3.0 :: ExternalInterface.call Not Working?

Apr 22, 2010

I am having a problem using ExternalInterface.call to a javascript  function. I have used this method many times in many places and at some  point during this project, it was working, but now it stalls my Flash  file when executed. I have the function: var initialize=function(){ExternalInterface.call("SCOInitialize");statusTxt.text="initializing"; } On my html page, there is a SCOInitialize function that works perfectly  if I call it via the html page: <body onLoad="SCOInitialize()"> ... </body> When I make the call using flash... initialize(); ...the Flash file just gets hung up and it actually wont execute the  second line of code in the function: statusTxt.text="initializing"; What is the deal? I can't for the life of me figure out why it won't

View 7 Replies

ActionScript 3.0 :: Why Call ExternalInterface Fail

Jan 11, 2011

I want to ActionScript3 set HomePage to Google ",so I use following stagement:[code]Then I call this swf in html page,like follows:[code]When I use mouse click,IE8 raise javascript error.'null' is null or not object

View 5 Replies

ActionScript 3.0 :: ExternalInterface Call From Child Swf

Apr 8, 2011

I am trying to make a JS function call from a child swf, but I am running into issues when the child swf is loaded on a different domain than the parent.

Here's what my scenario looks like:

my HTML test page is on domainA.com and loads the parent swf, which is located in [URL].

The parent swf loads a child swd located in domainC.com.

After the child swf is loaded I want to make a JS function call, but when I call ExternalInterface.call("myJSFunction", "params"), the JS code never gets executed.

When I placed all of the files under the same domain, everything works fine.

View 1 Replies

ActionScript 2.0 :: ExternalInterface.call : Get The Variable From JS?

Dec 28, 2011

I am simply trying to get the variable from JS but can't get it

Code:
<script>
var APIfound = true
</script>

[code]....

View 0 Replies

Actionscript 2.0 :: ExternalInterface.call(); Still Supported?

Aug 22, 2009

This does not work:

Within the HTML Head tags:
Code: Select all<script type="text/javascript">
function show_alert()
{
alert("I am an alert box!");

[Code]...

View 1 Replies

ActionScript 3.0 :: ExternalInterface.call Won't Work In Ie

Feb 11, 2008

I'm having some serious issues trying to get externalinterface to work in ie. I've looked around and seen that there are problems with ie when the swf is inside a form tag but my swf is not. Also I have set "allowscriptaccess" to "always" and still nothing. It works fine in FF and safari. In ie all i get is a little icon in the bottom corner that says "Error on page" and when I select that it just says something to the effect that there is a syntax error but doesn't give any helpful details at all.

View 10 Replies

ActionScript 3.0 :: Using ExternalInterface To Call Jquery

Jun 30, 2009

in an aspx page, the call for a lightbox to appear is this:

Code:
<a href="somePage.htm" rel="superbox[iframe][873x436]">

i need to make the same call, but from flash. i am pretty sure this would be done using ExternalInterface.call(); however, i am not sure how this would be done. can anyone shed some light on this? i tried doing the following, but to no avail:

[Code]....

View 4 Replies

ActionScript 3.0 :: Get Current Browser URL ExternalInterface.call

Oct 22, 2010

I'm trying to assign the current URL in the browser to a variable in AS3 (CS3).URl...I have tried the following code Actionscript Code: import flash.external.*;var currentURL:String = String(ExternalInterface.call("window.location.href.toString"));trace(currentURL);I export the file (html & SWF) and try it locally and I have [code]I get no compile errors but I do get the security warning from my Flash player 10 in IE8 saying it stopped due to a potentially unsafe operation etc etc.

View 4 Replies

ActionScript 1/2 :: Bug With Multiple Calls To ExternalInterface.call?

Oct 7, 2009

Are there any known issues (and workarounds) involving multiple calls toExternalInterface.call in ActionScript 2.0?I have 3 functions, each of which calls an external JavaScript function.  These 3 functions run nearly back-to-back-to-back.  The first time I load the page containing my Flash movie in a browser, I see the effects of all 3 JavaScript functions, as expected.  However, once I begin reloading the page a few times, I begin to randomly see the effects of only 1, 2, or 3 of the JavaScript functions. Clearing the browser cache seems to "reset" this cycle, guaranteeing all 3 calls to work again successfully.

View 1 Replies

Actionscript :: Can't Call Script Function From This With ExternalInterface

Dec 26, 2011

I am trying to scroll an html page back to top in response to an actionscript call
 
i have no knowledge of html or js, but i did this
 
in flash pro, in my document class i have this:
 
ExternalInterface.call("JumpScroll");
 
in the automatic html page wrapper made by flash pro (publish template "Flash with FSCommand") i added these lines inside the script block[code]...

View 3 Replies

JavaScript :: Unable To Get ExternalInterface.Call To Work In IE7

Aug 11, 2010

<script type="text/javascript" src="swfobject/swfobject.js"></script>
<script language="javascript" >
swfobject.registerObject("myId", "10.0.0");
function execute(){
return a;
}
[Code] .....

I have this which is based off of this question: [URL]. However this neither works in firefox and IE. If I embed my flash into the browser like this:
<embed src="helpdeskApp_three.swf" id="flash" quality="high" scale="exactfit" width="800" height="500" name="movie" align="middle" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="[URL]"/>

This works in Firefox but not IE. What is the proper way of embedding my flash movie so it works across all browsers?

View 1 Replies







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