Ive been working on the radar plugin most of the day. Im having problems positioning the active radar with each "spot". The active radar spot seems to not want to link with each "spot" scene. The following is my code along with a picture of the radar. I have two spot links to the left of the map and the active radar is to the right.
<!-- the image map -->
<layer name="map" url="skin/Floorplan.png" keep="true" align="righttop" x="16" y="16" width="316" height="222"
handcursor="false"
scalechildren="true"
maskchildren="true"
onclick="closemap();"
>
<!-- 'rooms' and spots - the 'room' container elements were used for masking the radar -->
<layer name="room1" type="container" align="lefttop" x="2" y="120" width="187" height="115" maskchildren="true">
<layer name="spot1" url="skin/mappoint.png" align="lefttop" edge="center" x="91" y="59" zorder="2" onclick="loadscene(scene__DSC1933_Panorama, null, MERGE, BLEND(1));" />
</layer>
<layer name="room2" type="container" align="lefttop" x="70" y="190" width="117" height="214" maskchildren="true">
<layer name="spot2" url="skin/mappoint.png" align="lefttop" edge="center" x="100" y="200" zorder="2" onclick="loadscene(scene__DSC2041_Panorama, null, MERGE, BLEND(1));" />
</layer>
</layer>
<!-- radar plugin, will be assigned to be a child of spot -->
<layer name="radar" keep="true" visible="true"
url="%SWFPATH%/plugins/radar.swf"
alturl="%SWFPATH%/plugins/radar.js"
align="righttop" edge="righttop"
fillcolor="0xFFFFFF" fillalpha="0.5" scale="1.0"
headingoffset="0"
/>
<!-- activated spot image (child of the radar layer) -->
<layer name="activespot" parent="radar" url="skin/mappointactive.png" keep="true" align="center" edge="center" />
<!-- actions -->
<action name="closemap">
set(onclick, openmap() );
tween(width,64);
tween(height,45);
</action>
<action name="openmap">
set(onclick, closemap() );
tween(width,316);
tween(height,222);
</action>
<!-- activatespot action - %1 = the current spot, %2 = the current radar heading -->
<action name="activatespot">
set(layer[radar].parent, layer[%1]);
set(layer[radar].visible, true);
set(layer[radar].heading, %2);
</action>
<!-- the scenes -->
<scene name="scene__DSC1933_Panorama" onstart="activatespot(spot1, 0);">
<view hlookat="122.501" vlookat="7.196" fov="120" />
<preview type="grid(cube,32,32,256,0xDD3322,0xCC3322,0xFF0000);" details="16" />
</scene>
<scene name="scene__DSC2041_Panorama" onstart="activatespot(spot2, 90);">
<view hlookat="122.501" vlookat="7.196" fov="120" />
<preview type="grid(cube,32,32,256,0x33DD22,0x33CC22,0x00FF00);" details="16" />
</scene>
</krpano>