PDA

View Full Version : Pop up Blues


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

Suikoden
11-02-2002, 10:56 AM
um dunno whats going on but in the Actionscript there are no gaps. dunno why that happened.

tg
11-04-2002, 03:16 PM
change: 'OpenNewWindow' (in your getURL actions) to: 'openNewWindow' i do believe flash is being case sensitive here.

Suikoden
11-04-2002, 06:21 PM
oh no thats not the case, the forum was being weird when i wrote the mail.

Basically, i sorted it as soon as i posted. i cant explain its too odd as to what was happening.

Cheers

Suikoden