PDA

View Full Version : Calling a JS function with getURL


xdementia
05-26-2005, 09:50 PM
Hi everyone. I use this JavaScript function
function openWindowEIPhoto() {
popupWin = window.open('eiphoto.html', 'remote', 'width=400,height=361')
}
to open new windows with set sizes in HTML and I am trying to get it to work in flash when a user presses on a button. The code on my button is the following:
on (release) {
getURL("javascript:openWindowEIPhoto('eiphoto.html');", "_blank");
}

The result that I'm getting is this: a blank page in the frame where my flash movie was. The result that I desire is that it works similiar to when I do it in HTML - a new window with eiphoto.html loaded into it that is the size I specified in the function.

Boskic.com
05-27-2005, 12:18 PM
http://www.actionscript.org/forums/showthread.php3?t=74504

Boskic.com
05-27-2005, 08:40 PM
on (release) {
getURL("javascript:openWindowEIPhoto();void(0)");
}