Skip to main content
Participant
January 5, 2008
Question

firefox pop-up blocker

  • January 5, 2008
  • 1 reply
  • 264 views
hey there
I've just learned how to add a link to a button, but when viewed in firefox it wants to open up a new tab, and the popup blocker stops the new page from loading. (Seems to work fine in Safari, however)

here's the script I put in the first keyframe of the timeline:

big_button.addEventListener(MouseEvent.CLICK, goWhere)
function goWhere (evt) {
var url = "page2.html"
navigateToURL(new URLRequest(url))
}

there's a video clip that runs in a later frame of the swf, could that be part of the problem?
thanks for your tips!!
This topic has been closed for replies.

1 reply

luckymacAuthor
Participant
January 6, 2008
maybe I answered my own question--I found and copied this from the general discussion post by "nardove" and will give it a try tomorrow:

firefox will block popup

if you use onPress so use onRelease

for example

button.onRelease = function() {
getURL("javascript:MM_openBrWindow(' http://www.domain.com','title','width=430,height=400,scrollbars=yes')");
}

doesnt work if onPress is use like

button.onPress = function() {
getURL("javascript:MM_openBrWindow(' http://www.domain.com','title','width=430,height=400,scrollbars=yes')");
}


why is this not sure, comments are more than welcome

sorry if this has been allready said in the forum but i search and found nothing, and sorry for my writting too : )

cheers