Posted recently in this thread:the part 1 Well it still happends sometimes to get the same bug.Everywhere i click on the game it gets me to the specific URL. Any idea what could it be? thx. Heres what i use:
//constructor
pubLogoContainer.addEventListener ( MouseEvent.MOUSE_DOWN, OnMouseDown);
public function OnMouseDown(e:Event = null): void
{
if(mouseX<68 && mouseY<-10)
{
pubLogoContainer.addEventListener( MouseEvent.MOUSE_DOWN, goToTheURL);
}
}
public function goToTheURL(e:Event):void
{
if( pubLogoContainer.hasEventListener(MouseEvent.MOUSE_UP))
{
pubLogoContainer.removeEventListener(MouseEvent.MOUSE_UP, goToTheURL);
}
if(mouseX<68 && mouseY<-10)
navigateToURL(new URLRequest("link"), "_blank");
}
//and when i change world
pubLogoContainer.removeEventListener( MouseEvent.MOUSE_DOWN, OnMouseDown);
pubLogoContainer.removeEventListener(MouseEvent.MOUSE_UP, goToTheURL);
FP.stage.removeChild(pubLogoContainer);