How To Avoid Getting Caught by a Popup Blocker - it just doesn't work!
Having the same old problem with the pop up blocker appearing in IE7 with the Flash wrapper. Have followed all the directions in the How To Avoid Getting Caught by a Popup Blocker Widgetbox help - but it just doesn't work!
Widget is AS3:
Code:
import flash.net.URLRequest;
import flash.net.navigateToURL;
import flash.events.*;
import flash.display.Sprite;
redButton_btn.addEventListener(MouseEvent.MOUSE_UP,gotoURL);
function gotoURL(event:MouseEvent):void {
var url:String = "http://en.wikipedia.org/wiki/Red_Button_(Digital_Television)";
var requestURL:URLRequest = new URLRequest(url);
try {
navigateToURL(requestURL, "_blank");
} catch (e:Error) {
// handle error here
}
}
Help!?
Widget is AS3:
Code:
import flash.net.URLRequest;
import flash.net.navigateToURL;
import flash.events.*;
import flash.display.Sprite;
redButton_btn.addEventListener(MouseEvent.MOUSE_UP,gotoURL);
function gotoURL(event:MouseEvent):void {
var url:String = "http://en.wikipedia.org/wiki/Red_Button_(Digital_Television)";
var requestURL:URLRequest = new URLRequest(url);
try {
navigateToURL(requestURL, "_blank");
} catch (e:Error) {
// handle error here
}
}
Help!?
3
people have this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
The company has a solution in progress.
-
Inappropriate?I believe it is due to the mouse event you're using. MouseEvent.MOUSE_UP. Using MouseEvent.CLICK usually works for me.
-
Inappropriate?Tried both MouseEvent.CLICK and MouseEvent.MOUSE_UP but still the pop-up blocker appears.
I’m frustrated
-
Inappropriate?Jay - We're taking a look. We'll post up when we know more.
-
Inappropriate?I'm also having this problem. I followed the instructions to the letter, also using MouseEvent.CLICK, etc.
I tried a workaround which I posted in the widgetbox forums (using externalinterface to open a window with javascript), but it causes security errors and is inconsistent cross-browser.
This needs to be fixed!
I’m ready to use another widget company
-
Inappropriate?Hey Jay,
I'm sorry, but this appears to be a bug introduced in Flash Player 9.0.0.115. Adobe's bug database has it listed here: http://bugs.adobe.com/jira/browse/SDK-12987. Although they don't mention IE7, my tests show it is a problem there as well.
There is some light however...this issue just doesn't exist if you just AS2 and publish your SWFs for Flash Player 8. You can see the difference if you click on the buttons in each of our Flash example widgets (AS2 and AS3).
Keep in mind this issue is going to be present with any widget platform that enforces a secure container around flash widgets. (ie. we set the parameter "allowScriptAccess" to "sameDomain" to prevent any JavaScript from executing.)
With that in mind, there is a solution that you can use (when not running in Widgetbox) that does require the use of Javascript. If you plan to distribute your widget outside of the Widgetbox platform, you may want to take advantage of the technique described in this Zorked! post.
I've updated the Developer docs on Widgetbox with this information.
I’m sorry
Loading Profile...




