Hi,
Only the line on the left of radar is visible after loading.
If the line is dragged somehow, radar will appear.
Radar turns after that.
This is my code.
Where is mistaken?
Someone let me know.
Code
<krpano version="1.0.8.14" encoding="UTF-8" onstart="action(startscene);" showerrors="true">
<action name="startscene">
action(activatespot,scene1);
</action>
<include url="skin/defaultskin.xml" />
<view hlookat="320.0" vlookat="-40.0" fov="30" fovmin="30.0" fovmax="120"/>
<display details="22" />
<action name="loadpano1">
action(activatespot,scene1);
loadpano(baien_1.xml,null,MERGE,BLEND(3));
wait(blend);"
</action>
<action name="loadpano2">
action(activatespot,scene2);
looktohotspot(baien_2,20,smooth(100,100,100));
loadpano(baien_2.xml,null,MERGE,BLEND(3));
wait(blend);"
</action>
<plugin name="map"
url="images/map2.png"
alturl="images/map2.png"
keep="true"
device="all"
visible="true"
enabled="true"
handcursor="true"
zorder="1"
style=""
alpha="0.7"
align="leftbottom"
x="10"
y="10"
scalechildren="true"
scale="1.2"
altscale="1.0"
onclick="action();"
/>
<plugin name="scene1"
url="images/mappoint.png"
alturl="images/mappoint.png"
keep="true"
device="all"
visible="true"
enabled="true"
handcursor="true"
zorder="2"
parent="map"
alpha="1.0"
align="lefttop"
edge="center"
x="68"
y="202"
scale="1.0"
altscale="1.0"
onover=""
onout=""
onclick="action(loadpano1);"
/>
<plugin name="scene2"
url="images/mappoint.png"
alturl="images/mappoint.png"
keep="true"
device="all"
visible="true"
enabled="true"
handcursor="true"
zorder="2"
parent="map"
align="lefttop"
edge="center"
x="72"
y="177"
scale="1.0"
altscale="1.0"
onover="tween(scale,1.8);"
onout="tween(scale,1.0);"
onclick="action(loadpano2);"
/>
<plugin name="activespot"
url="images/mappointactive.png"
alturl="images/mappointactive.png"
keep="true"
device="all"
visible="false"
enabled="true"
handcursor="true"
zorder="3"
align="center"
edge="center"
scale="1.0"
altscale="1.0"
/>
<plugin name="radar"
url="radar.swf"
alturl="radar.js"
keep="true"
parent="map"
align="lefttop"
edge="center"
x="0" y="0"
scale="0.6"
heading="0.0"
fillcolor="0x3F3F3F"
fillalpha="1.0"
blendmode="add"
zorder="10"
/>
<action name="activatespot">
set(plugin[activespot].parent, plugin[%1]);
set(plugin[activespot].visible, true);
copy(plugin[radar].x, plugin[%1].x);
copy(plugin[radar].y, plugin[%1].y);
trace(plugin[radar].x,'-',plugin[radar].y);
set(plugin[radar].visible, true);
set(plugin[radar].heading, %2);
</action>
<preview url="baien_1.tiles/preview.jpg" />
<image type="CUBE" multires="true" tilesize="734" progressive="false">
<level tiledimagewidth="4775" tiledimageheight="4775">
<cube url="baien_1.tiles/l3_%s_%0v_%0h.jpg" />
</level>
<level tiledimagewidth="2388" tiledimageheight="2388">
<cube url="baien_1.tiles/l2_%s_%0v_%0h.jpg" />
</level>
<level tiledimagewidth="1194" tiledimageheight="1194">
<cube url="baien_1.tiles/l1_%s_%0v_%0h.jpg" />
</level>
<mobile>
<cube url="baien_1.tiles/mobile_%s.jpg" />
</mobile>
<tablet>
<cube url="baien_1.tiles/tablet_%s.jpg" />
</tablet>
</image>
</krpano>
Alles anzeigen