PDA

View Full Version : pop-up window


Sohling
04-09-2006, 08:21 AM
Hello, I am a new learner of JavaScript and ActionScript. I've a problem concerning the pop-up window from flash.

I created a btn1 and here is the AS;
on (release) {
getURL("JavaScript:popup1();");
}

And the JavaScript in HTML;
<SCRIPT LANGUAGE="JavaScript">
function popup1() {
window.open('popup1.html','','toolbar=no,location= no,directories=no,status=no,menubar=no,scrollbars= no,resizable=no,width=400,height=300,left=0,top=0' );
}
</script>

now, I want to have a btn2 to pop-up a window(popup2.html) with the same property with popup1.

How can i simpify it?

Please help.:)

Cota
04-09-2006, 08:27 AM
Give this way a try
http://www.flash-db.com/PopUp/

elstinko
05-05-2006, 11:56 PM
I have tried to use this script and script generator for Actionscript 2.0 with no success. It's unbelievable that I have been scouring the net and I can't find anything but this outdated Flash 5 Actionscript 1.0 code generator posted above.

I want to state for the record that this script has 4 errors and will not validate in Flash Script window when publishing in Actionscript 2.0 and 0 errors when publishing in Flash 5 or 6 Actionscript 1.

Cota
05-06-2006, 02:02 AM
I've never had a problem using it.