PDA

View Full Version : help with popup launcher


iaineach
03-10-2006, 12:19 PM
Hi,

Can anyone help me with some javascript? I have a a popup launched from a flash file on a button action (geturl) which works fine on IE and Firefox but in Safari it won't work at all. There is no pop-up blocker, as I can call the javscript on the actual HTML of the page and it works fine.

Any help much appreciated. Code is below:

Actionscript
on (release) {
getURL ("javascript:spawnWindow('manny03.html','manny_movie ','toolbar=no,location=no,status=no,menubar=no,scr ollbars=no,resizable=no,width=600,height=600,top=' +topPos+',left='+leftPos+'')");
}

Javascript
function spawnWindow(URL,Name,features) {
window.open(URL,Name,features);
}

leftPos = 0
topPos = 0
if (screen){
leftPos = (screen.width-600)/2
topPos = (screen.height-600)/2
}

thanks.

Cota
03-10-2006, 01:04 PM
http://www.flash-db.com/PopUp/

iaineach
03-10-2006, 02:12 PM
thanksfor your help, but unfortunately that doesn't work either. I tried it in flash 8 and safari 2.03 and the link won't work. pop-up blocking is off.

any other ideas?

Cota
03-10-2006, 02:18 PM
I have never so much as seen what safari looks like...but I havent heard of people having any problems with that Flash-DB popup scripts....I know there are issues with this things when running it locally..

iaineach
03-10-2006, 02:45 PM
solved it - the settings dialogue box is not automatically activated in safari, and the permissions need to be set in flash 8 to allow communication between the swf and the html / javascript.

The settings have to be updated manually.

Thanks for your help Cota.