Hello,
I'm trying to mimic "scenes with image map" demo on my vtour.
Although I have successfully place the map in the tour with the spots, the radar beam doesn't show. I have the radar plugin placed in the xml but don't know why know beam appears.
This is my code...
Code
<!-- global settings for map -->
<plugin name="map" url="graphics/map.png" keep="true"
align="lefttop" x="16" y="16" alpha="0.85" handcursor="false"
scalechildren="true"
width="320"
height="227"
onclick="action(closemap);"
/>
<plugin name="scene_1" url="graphics/mappoint.png" keep="true" parent="map" align="lefttop" edge="center" x="50" y="30" zorder="2" onhover="showtext(Parking Lot);" onclick="loadscene(scene_1, null, MERGE, BLEND(1));" />
<plugin name="scene_2" url="graphics/mappoint.png" keep="true" parent="map" align="lefttop" edge="center" x="180" y="60" zorder="2" onhover="showtext(Weinkeller);" onclick="loadscene(scene_2, null, MERGE, BLEND(1));" />
<plugin name="scene_3" url="graphics/mappoint.png" keep="true" parent="map" align="lefttop" edge="center" x="270" y="90" zorder="2" onhover="showtext(Barriquekeller);" onclick="loadscene(scene_3, null, MERGE, BLEND(1));" />
<!-- activated hotpot -->
<plugin name="activespot" url="graphics/mappointactive.png" keep="true" align="center" edge="center" visible="false" zorder="3" />
<!-- radar plugin, set heading with "plugin[radar].heading" -->
<plugin name="radar"
url="%SWFPATH%/plugins/radar.swf"
zorder="1"
keep="true"
heading="0"
parent="map"
mask="mapmask"
align="lefttop"
edge="center"
x="0" y="0"
linecolor="0"
fillcolor="0xFF0000"
scale="2.5"
visible="false"
/>
<!-- mask for radar -->
<plugin name="mapmask" url="graphics/map_mask.png" keep="true"
parent="map"
enabled="false"
/>
<!-- actions -->
<action name="closemap">
set(onclick,action(openmap););
tween(width,64,distance(320,0.5),easeoutquad);
tween(height,45,distance(227,0.5),easeoutquad);
</action>
<action name="openmap">
set(onclick,action(closemap););
tween(width,320,distance(320,0.5),easeoutquad);
tween(height,227,distance(227,0.5),easeoutquad);
</action>
<!-- activatespot action,
- this action has two arguments:
- %1 = the current spot
- %2 = the current radar heading
-->
<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>
Display More