I have this javascript which opens new, custom windows from Flash. I use this because I have about 12+ windows all with different sizes, that I’d like to launch:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
// End -->
</script>
it works great if I have my SWF at the same level as my content. But I’d like to keep my content in its own folder.
But when I try this in Flash:
on (release) {
getURL("javascript:NewWindow(\"content\pigs.html\",\"skittles\",\"540\",\"440\",\"no\")");
}
I get this message:
So I figured, “no problem, I’ll just fix the html”
It looked like this:
So I changed it to this:
but I still get this:
I’ve tried using a direct URL (as opposed to relative URL), I tried a “” and a “/”. I think I’ve exhausted all my options.
please help?