PDA

View Full Version : spawning new window


flash-hagen
01-02-2001, 12:01 AM
im trying to make my flash movie pop up from an html page in to a pop up my html looks like this

<HTML>
<HEAD><script language="JavaScript">
<!--
spawnWindow('http://24.20.65.99/snake/flash-hagen.swf','Flash_hagen.swf','toolbar=no,location= no,status=no,menubar=no,scrollbars=no,resizable=ye s,width=650,height=250')}
//-->
</script>
<TITLE>flash-hagen1</TITLE>
</HEAD>

my flash button in the html page to make the new window looks like this

on (release) {
getURL ("javascript:spawnWindow...");
}

i keep geting a santex error and it ask me if i wont to debug. what did i do now to make these errors.

Jesse
01-02-2001, 12:47 AM
Try making it:
spawnWindow('http://24.20.65.99/snake/flash-hagen.swf','Flash_hagen','toolbar=no,l... )

ie. Remove the ".swf" from the Flash_hagen window name. Window names can't include periods I think you'll find. (At a glance this appears to be the cause. If it doesn't fix it, reply...)

Cheers

Jesse

thegraphicguru
01-17-2001, 04:22 AM
I believe this is one of the easiest way to do this because you can use it over and over again....

<script lanugage="JavaScript>
<!--Begin

function theWindow(strURL) {
var windowObject;
if (navigator.appName.indexOf("Netscape") != -1) {
windowObject = window.open(strURL, "WindowName" , "outerwid
} else {
windowObject = window.open (strURL "WindowName= , "width

}

return;

}
thescript is not fully finished because I assum you know the width and height specifications....

then in flash its simple :)
on (release) {
getURL ("javascript:theWindow('yoursite.htm')");
}

have fun...

________________
thegraphicguru:)