Thread
:
Popups From Flash - Solution
View Single Post
Sundev
2008-06-05 #
28
I've added a way to get Safari to open popups, but it's a big hack and it's not very pretty to integrate. Basically you have to check to see if the browser is Safari using javascript, then pass that value to flash, then have flash register the button for a MOUSE_DOWN event instead of a CLICK event if it is safari. The MOUSE_DOWN event then uses external interface to call a function that sets global variables for the url, name, and options for the pop up. I then wrap the flash object in a div and attach an onClick handler to the div that calls a function which checks to see if the variables for the popup were set and uses those variables to launch the popup, then resets those variables to "". You have to change the listener in flash from CLICK to MOUSE_DOWN in order to get the ExternalInterface call to set the popup values prior to the div wrapper trying to open the popup with the new values.
It's kind of a ridiculous hack, but if anyone wants me to post the code or add it to Nutrox's let me know.
Sundev
View Public Profile
Visit Sundev's homepage!
Find all posts by Sundev