on (press) {
getURL ("java script:popup('video01.htm','Scubavideo','406','118')");
}
Eksempel fra
http://www.eksperten.dk/spm/176173. Hvor du skriver din javascript i html filen,
som flash laver sammen med swf filen.
<HTML>
<HEAD>
<TITLE>Untitled 1</TITLE>
<script type="text/javascript">
var win= null;
function popup(videopopup,video,w,h){
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
var settings ='height='+h+',';
settings +='width='+w+',';
settings +='top='+wint+',';
settings +='LEFT='+winl+',';
settings +='scrollbars=no,';
settings +='resizable=no';
win=window.open(videopopup,video,settings);
if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}
</script>
</HEAD>
<BODY bgcolor="#FFFFFF">
<!-- URL's used in the movie-->
<A HREF=java script:popup('videopop.html', 'nyheder', 400, 255)></A> <!-- text used in the movie-->
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
WIDTH=550 HEIGHT=400>
<PARAM NAME=movie VALUE="Untitled 1.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="Untitled 1.swf" quality=high bgcolor=#FFFFFF WIDTH=550 HEIGHT=400 TYPE="application/x-shockwave-flash" PLUGINSPAGE="
http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT>
</BODY>
</HTML>
/per