all groups > macromedia flash sitedesign > march 2007 >
You're in the

macromedia flash sitedesign

group:

flash button & javascript help


flash button & javascript help triboj
3/27/2007 9:31:49 PM
macromedia flash sitedesign: :brokenheart;
I had a site up for quite a while and then one day it stopped working - had
designed it a specific size - so had an http://www.eyeconography.net. On that
page is the function

function NewWindow(url, windowName, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops =
'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resiz
able';
win = window.open(url, windowName, winprops);
if (parseInt(navigator.appVersion) >= 4) {
win.window.focus();
}
}

In the SWF file the button that says enter has the following code:
on (release){

getURL("javascript:NewWindow("eyeconography.html","eyeconography","800","550","n
o")");
}

Everything worked for years - and then one day did not in any browser (I
think). This was not the only button effected.

Thanks in advance for any help.
Re: flash button & javascript help ggshow
3/28/2007 12:00:00 AM
you got a mistake with your quotation marks " "

try this:



on (release) {
getURL("javascript:NewWindow('eyeconography.html','eyeconography','800','550','no')");
Re: flash button & javascript help triboj
3/28/2007 12:00:00 AM
Re: flash button & javascript help ggshow
3/29/2007 5:09:53 AM
Not sure which one "did not"

I've check http://www.eyeconography.net/
Re: flash button & javascript help triboj
3/29/2007 6:36:57 PM
Thanks for checking it out - I have a PC at work and the pop-up menu works on
that computer, But It stopped on Macs - so now I think it is some security
issue. I dont' know anything about the param name allowScripts, but maybe it
has to do with that. I was wondering if anyone knows something that could have
changed that would have suddenly changed the functionality of that button on
Macs.


Re: flash button & javascript help mjjp
4/2/2007 3:07:56 AM
AddThis Social Bookmark Button