Hi
What could cause the radar cone not to displaying on my map.... here's my plugin code:
Code
<layer name="map" url="img/nav_images/imagemap.png" keep="true"
align="rightbottom" x="40" y="100" 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="125" y="4" width="187" height="115" maskchildren="true">
<layer name="spot1" url="img/nav_images/mappoint.png" align="lefttop" edge="center" x="91" y="59" zorder="2" onclick="loadscene(scene_filled_location_1, null, MERGE, BLEND(1));" />
</layer>
<layer name="room2" type="container" align="lefttop" x="4" y="4" width="117" height="214" maskchildren="true">
<layer name="spot2" url="img/nav_images/mappoint.png" align="lefttop" edge="center" x="61" y="104" zorder="2" onclick="loadscene(scene_filled_location_2, null, MERGE, BLEND(1));" />
</layer>
<layer name="room3" type="container" align="lefttop" x="125" y="123" width="187" height="95" maskchildren="true">
<layer name="spot3" url="img/nav_images/mappoint.png" align="lefttop" edge="center" x="92" y="46" zorder="2" onclick="loadscene(scene_filled_location_3, null, MERGE, BLEND(1));" />
</layer>
</layer>
<!-- radar plugin, will be assigned to be a child of spot -->
<layer name="radar" keep="true" visible="false"
url="plugins/radar.swf"
alturl="plugins/radar.js"
align="center" edge="center"
fillcolor="0xFFFFFF" fillalpha="0.5" scale="3.0"
headingoffset="0"
/>
<!-- activated spot image (child of the radar layer) -->
<layer name="activespot" parent="radar" url="img/nav_images/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>
Alles anzeigen