Heya! I’m making a HTML5 game in OpenFL using the Starling lib and it seems TouchEvents aren’t detected as proper clicks by the browser and using Lib.getUrl results in the pop-up blocker firing up.
link.addEventListener(TouchEvent.TOUCH, linkClick); //link is starling.display.Image
and in linkClick():
Lib.getURL(new URLRequest ("http://www.google.com"), "_blank");
A workaround to this is adding a MouseEvent.CLICK listener to the nativeStage and manually check if the mouse is over the linked image.
Wonder if there’s a better solution!