Pop-up Windows

Anybody have a simple script to open an html file to exact size of 526 x 380 with out any toolbars, scrollbars, sizing etc from a flash movie? I am using MX

I have tried a few tutorials and not having any luck. Sorry for being so remedial…but I am ultra-wet when it comes to this stuff!

hoi

here :wink:


site = "http://www.master64.nl"
winHeight = 400
winWidth = 550
toolbar = "no"
scrollbars = "no"
getURL("*j*avascript:openNewWindow('"+site+"','thewin','height="+winHeight+",width="+winWidth+",toolbar="+toolbar+",scrollbars="+scrollbars+"') ");

that should work :wink:

edit: thanks fluid_0ne :}

pt this into html, where movie is located:

<script type="text/javascript">
<!--
closetime=0;

function Start(URL){
windowprops="directories=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no,width=526,height=380,left=25,screenX=25,top=25,screenY=25";
preview=window.open(URL,"popWin",windowprops);
if (closetime) setTimeout("preview.close();", closetime*1000);
}

function popupWin(){
url="-----URL-GOES-HERE-----"
delay=0;
timer = setTimeout("Start(url)", delay*1000);
window.status="";
}
//-->
</script>

and this AS into button’s actions:


on(release){
getURL("*j*avascript:popupWin();");
}

*Originally posted by Master64 *
**
edit: there is a bug on the forum!!
getURL("about :…
should be
getURL("javascript:… **

use [ i ]j[ /i ]avascript (without spaces):beam: :bu:

Thanks for this help - I’ve been ‘away’ from the project since about 2 minutes after you gave it to me - which is why I ain’t thanked you yet!

Cheers!