Thursday, June 28, 2007

getting around a popup blocker

just realised something about firefox, and i'm guessing other popup blockers...
if you want to launch a new window from your Flash app, you've probably got a Javascript window.open function on the page. but when you call this function, the popup blocker kicks in. but if you place the Flash asset on the page using SWFObject or UFO, and set the wmode parameter to transparent, then it seems to get around the popup blocker.
so your javascript should look something like this...



it's worth remembering that embedding Flash with wmode set like this will prevent Flash from accessing any of the accessibility features :(

0 Comments:

Post a Comment

<< Home