POP up window Help!.. been going round in circles with this 1!

right iv followed this tutorial to a tee! http://www.kirupa.com/developer/mx/centered_popup.htm

basically i make it in flash, when i test the swf. file i get a message saying

“Safari can’t run the script “var myWin; if(!myWin || myWin.closed){myWin = window.open(‘mock4.swf’,‘Nishant Shukla’,‘width=1024,height=768,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top=’+((screen.height/2)-(384))+’,left=’+((screen.width/2)-(512))+’’)}else{myWin.focus();};void(0);” because Safari doesn’t allow JavaScript to be used in this way.”

but when i click the script on the tutorial it pops up fine? have i missed something out?.. iv uploaded it to a temporary host online and still it doesnt work…

Please help someone!! =(

Trying to run the JavaScript locally (within your computer) will result in the error message you are getting.

However, if you go through the whole process of setting it up and running this through your server website it does work.

In other words, it actually has to be run through the Internet to work.

[QUOTE=rkoes;2345538]right iv followed this tutorial to a tee! http://www.kirupa.com/developer/mx/centered_popup.htm

basically i make it in flash, when i test the swf. file i get a message saying

“Safari can’t run the script “var myWin; if(!myWin || myWin.closed){myWin = window.open(‘mock4.swf’,‘Nishant Shukla’,‘width=1024,height=768,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top=’+((screen.height/2)-(384))+’,left=’+((screen.width/2)-(512))+’’)}else{myWin.focus();};void(0);” because Safari doesn’t allow JavaScript to be used in this way.”

but when i click the script on the tutorial it pops up fine? have i missed something out?.. iv uploaded it to a temporary host online and still it doesnt work…

Please help someone!! =([/QUOTE]

[QUOTE=small_guy;2345582]Trying to run the JavaScript locally (within your computer) will result in the error message you are getting.

However, if you go through the whole process of setting it up and running this through your server website it does work.

In other words, it actually has to be run through the Internet to work.[/QUOTE]

right cheers, iv run it on the server, its now working ok… however it doesnt run on internet explorer??? =/ says error on page and nothing pops up

I am not sure what the IE issue might be on this. Someone else might.

[QUOTE=rkoes;2345609]right cheers, iv run it on the server, its now working ok… however it doesnt run on internet explorer??? =/ says error on page and nothing pops up[/QUOTE]

I have a similiar issue. My problem is, is that I need it to work locally, because my project will be put to a dvd so users can access it on their HD. Is there a solution to call js through flash locally?