Hello guys, I would like to ask if possible for a bit of help regarding protecting a flash game from websites that blocks the outgoing links such as "more games" button inside a flash game.
As you probably know or heard more and more portals that publish flash games blocks the outgoing links inside Flash games, this way the users won't be able to visit the sponsor/developer page when clicking the "more games" button or credits section or even the advertising.
There are solutions in AS3 posted online, yet I don't know Haxe and can't rewrite the code.
Here is an example:
var checkNetwork:Object;
function Website(event:MouseEvent):void {
try{
checkNetwork = ExternalInterface.call(null);
navigateToURL(new URLRequest("https://www.playgb.com"));
}
catch( $e:* ){
mcError.x = 0;
mcError.y = 0;
}
}
button1.addEventListener(MouseEvent.CLICK, Website);
source:
https://www.playgb.com/page/how-to-avoid-external-link-blocking