Yet another popup window problem

Hey all,

ok i am having some troubles with the launch a centered popup. i’ve uploaded my html page(s) and swf & it still doesnt work right. when it launches the widow i get a “syntax error” and you can see the whole java code in the address bar. any idea what the hell’s going on?

oh, and i’ve tried “publishing” it and still no luck.

tks in advance :slight_smile:

http://d7.bz/wwv/index.htm
http://d7.bz/wwv/wwv.zip

Did you download the source file from the tutorial and compare your code.

Are you testing it right out of flash when you preview a movie or through the browser? You should be doing it from inside a browser since the functions it uses are translated by the browser in order to open the new window :slight_smile:

through a browser, and yes to all of the above :slight_smile:

i posted the links above to the fla and the index.htm

Bah, you edited when I replied…lol.

Both those links give me nothing.

try now

Nope… i just get an incredibly slow loading page for the html file and a error saying could not connect to server for the .zip file.

http://useful-idiot.net/w/index.htm

can you see that?

well i’ve been told the server is down, but some people can see it. i guess we’ll just have to wait. thanks though…

Nope, I can’t see that.

The server may be down to certain parts of the country and not to others.

So waiting it is :slight_smile:

is it working for you yet? :asian:

nope:(

how about now?

Ok it works now, and I checked the.html file, but I can’t find the pop up link. I swear I tried everything in there and not one of them launches a pop up. They all change the flash inside.

i no understan… what’s wrong with it? no code? :ninja:

Well which link is supposed to open the pop up window?

After I know what link to press, it will be much easier to see, and find in the file.

guestbook :slight_smile:

Well your problem is that you never defined the Prototype that the script calls on from your button.

On your frame you have an action that says something that makes absolutely not sense… that would be this line…

getURL("on (release) {
	getURL(\"javascript:newWin('pic_show.html','imageGallery','280','315','0','0')\");
}");

Now, I removed that line, because there was no point to it and I added this in there…

Movieclip.prototype.openWinCentre = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
	getURL("javascript:var myWin; if(!myWin || myWin.closed){myWin = window.open('"+url+"','"+winName+"','"+"width="+w+",height="+h+",toolbar="+toolbar+",location="+location+",directories="+directories+",status="+status+",menubar="+menubar+",scrollbars="+scrollbars+",resizable="+resizable+",top='+((screen.height/2)-("+h/2+"))+',left='+((screen.width/2)-("+w/2+"))+'"+"')}else{myWin.focus();};void(0);");
};

And everything works perfectly. Note: Remove space between “java” and “script” (no quotes), the board automatically does that.

ok now where do i add the guestbook.htm?

I changed nothing on your button code.

I just added the above code onto the frame and everything was fine.

oh ok. so what do i put on the button?