skyline html 入门例子 提示类不支持Automation操作
我用的是skyline官网中的例子,我自己的机子也安装了SkylineGlobeSetup.exe:例子代码:
<html><head><title>SGAPI Example
</title><scripttype="text/javascript"src="skyline:sgapi.js"></script><scripttype="text/javascript">var globe;
function Init() {
try {
// instantiate SGWorld object globe =
new SGWorld(
"myWorld");
// attach callback to the load finished event globe.attachEvent(
"onLoadFinished", OnLoadFinished);
// Load default developer fly file from www.skylineglobe.com web site.var fly =
"http://www.skylineglobe.com/SkylineGlobe/WebClient/PresentationLayer/WebClient/SkyglobeLB.fly"; globe.teCore.ITerraExplorer.Load(fly); }
catch(e) { alert(e.description); } }
function OnLoadFinished() {
// Fly to the Washington DC when fly is loadedvar Washington =
new SGCoord3D(-77.036667, 38.895111, 1500); globe.navigate.flyTo(Washington); }
</script></head><bodyonload="Init()"><divid='myWorld'style="width:
700px;
height:
500px;
"></div></body></html>
但每次执行都会弹出类不支持Automation操作,然后就只看到一个灰白的框,没有图,请问这是怎么回事啊?
谢谢啊