PDA

View Full Version : Pop-up Windows



mikemeister
August 7th, 2003, 04:55 AM
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!

Johnny64
August 7th, 2003, 05:26 AM
hoi


here ;)


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


that should work ;)

edit: thanks fluid_0ne :}

fluid_0ne
August 7th, 2003, 05:27 AM
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,heig ht=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("javascript:popupWin();");
}

fluid_0ne
August 7th, 2003, 05:31 AM
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:

mikemeister
August 18th, 2003, 09:44 PM
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!