Suikoden
11-02-2002, 10:54 AM
Hey guys,
Basically ive made a main movie that loads a movie within it.
That loaded movie is one giant button, when clicked i want a new window to pop up. this is my script:-
In the HTML PAGE of my MAIN movie:-
<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures)
{ newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
</script>
And for my button Action.
on (release) {
getURL("javascript:OpenNewWindow('Html/movies.htm','movies','height=700,width=550,left=0, top=0,toolbar=no,scrollbars=yes,status=no,resizabl e=no,fullscreen=no');");
}
The problem is it doesn't work. Does the javascript need to be somewhere else?
i cant seem to get it to work.
any help?
cheers
Suikoden
Basically ive made a main movie that loads a movie within it.
That loaded movie is one giant button, when clicked i want a new window to pop up. this is my script:-
In the HTML PAGE of my MAIN movie:-
<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures)
{ newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
</script>
And for my button Action.
on (release) {
getURL("javascript:OpenNewWindow('Html/movies.htm','movies','height=700,width=550,left=0, top=0,toolbar=no,scrollbars=yes,status=no,resizabl e=no,fullscreen=no');");
}
The problem is it doesn't work. Does the javascript need to be somewhere else?
i cant seem to get it to work.
any help?
cheers
Suikoden