Hi, Sebastian
its work on server (with standard p2q_embed_object.js and pano Pano2VR3b)
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title></title>
<script type="text/javascript" src="p2q_embed_object.js" />
</head>
<body>
<p>
<script type="text/javascript">
<!--
function getFlashMovie(movieName) {
var isIE = navigator.appName.indexOf("Microsoft") != -1;
return (isIE) ? window[movieName] : document[movieName];
}
if ((window.p2q_Version) && (window.p2q_Version>=2.0)) {
var flashvars="";
// enable javascript interface
flashvars+="externalinterface=1&pan=22";
p2q_EmbedFlashId('pano','test.swf','640','480','allowFullScreen','true','FlashVars',flashvars);
// Check to see if the version meets the requirements for playback
if (!DetectFlashVer(9,0,0)) {
document.write('<p class="warning">This content requires Adobe Flash Player Version 9 or higher. '
+ '<a href="http://www.adobe.com/go/getflash/">Get Flash<\/a><\/p>');
}
} else {
document.writeln('<p class="warning">p2q_embed_object.js is not included or it is too old!');
document.writeln(' Please copy this file into your html directory.<\/p>');
}
//-->
</script>
<noscript>
<p class="warning">Please enable Javascript!</p>
</noscript>
<br>
<a onClick="pano.moveTo(140,-40,70,10);" href="#">Move To 140,-40</a>
<a onClick="pano.moveTo(-100,40,70,3);" href="#">Move To -100,40</a>
<a onClick="pano.moveTo(-140,30);" href="#">Move To -140,30</a>
<a onClick="pano.stop();pano.setPan(-100);pano.setTilt(-50);" href="#">Jump To -100,-50</a>
</body>
</html>
I attach into upper HTML page, new test SWF button with code in BODY
Code: Select all
<object width="150px" height="150px" classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">
<param name="movie" value="button.swf">
<param name="quality" value="high">
<param name="bgColor" value="#E6E6E6">
<param name="wmode" value="window">
<embed src="button.swf" width="150px" height="150px" quality="high" TYPE="application/x-shockwave-flash" wmode="window" bgColor="#E6E6E6" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</object>
code form SWF test button (AS2)
Code: Select all
on (release) {
getURL("javascript:pano.moveTo(140,-40,70,10);" );
}
all test on server (button not work)
_______
I think that should even write a little Delegate script something like this (for interact with the new object),
new adding JavaScript in HTML
Code: Select all
function pano.moveTo(pan,tilt,fov,speed){
...
}
but I do not know, how to correct write it...
_______
just attachment button.fla