This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > August 2006 > Problems setting window size.....PLEASE HELP





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Problems setting window size.....PLEASE HELP
Lucy4

2006-08-14, 10:22 pm

I've got a simple flash movie that has two buttons in it. Each of the buttons
need to open a page at a set size. I've done this with JavaScript and this
works well, but only if I have one button. The buttons has different links, but
how do I get them to still open a new window at a set size?

I've added:

on(release){
getURL ("JavaScript: popup();");
}

to the buttons in Flash and:

<SCRIPT LANGUAGE = "JavaScript">
function popup() {

window.open('http://www.whatever.com','','toolbar=yes,location=yes,directories=n
o,status=yes,menubar=yes,scrollbars=no,resizable=no,width=831,height=613,left=0,
top=0');
}
</SCRIPT>'

after <HEAD> in the HTML page.

Thanks
Lucy

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews