I have configuration
Code
<plugin name="map" keep="true" handcursor="false" align="righttop" />
<style name="mapspot" keep="true" url="graphics/camicon.png" parent="map" align="lefttop" edge="center" />
<plugin name="spot6" style="mapspot" visible="false" x="148.76084443557" y="93.437138836942" heading="572.95779513082" onclick="loadscene(scene_6,null,MERGE,BLEND(1));"/>
<plugin name="spot7" style="mapspot" visible="false" x="87" y="92" heading="0" onclick="loadscene(scene_7,null,MERGE,BLEND(1));"/>
<plugin name="activespot" keep="true" url="graphics/camicon_red.png" align="center" edge="center" />
<plugin name="radar" keep="true" url="plugins/radar.swf" editmode="true" parent="activespot" scale="1" align="center" edge="center" x="-1" y="-1"
fillalpha="1.0" fillcolor="0x3F3F3F" blendmode="add"
mask="radarmask"
/>
<plugin name="radarmask" keep="true" url="graphics/radarmask.png" parent="map" align="lefttop" visible="false" enabled="false" />
Alles anzeigen
On start each scene I have updateradar() action
Code
<action name="updateradar">
set(plugin[map].url, "plans/5.png");
set(plugin[spot6].visible,"false");
set(plugin[spot7].visible,"false");
set(plugin[spot9].visible,"false");
set(plugin[spot10].visible,"false");
set(plugin[spot8].visible,"true");
set(plugin[spot8].zorder,1);
set(plugin[spot11].visible,"true");
set(plugin[spot11].zorder,2);
set(plugin[spot12].visible,"true");
set(plugin[spot12].zorder,2);
set(plugin[spot13].visible,"true");
set(plugin[spot13].zorder,2);
set(plugin[spot14].visible,"true");
set(plugin[spot14].zorder,2);
set(plugin[spot15].visible,"true");
set(plugin[spot15].zorder,2);
set(plugin[spot16].visible,"true");
set(plugin[spot16].zorder,2);
set(plugin[activespot].parent, spot8);
</action>
Alles anzeigen
and
Code
<action name="updateradar">set(plugin[spot6].visible,"true");
set(plugin[spot6].zorder,1);
set(plugin[spot7].visible,"true");
set(plugin[spot7].zorder,2);
set(plugin[spot9].visible,"true");
set(plugin[spot9].zorder,2);
set(plugin[spot10].visible,"true");
set(plugin[spot10].zorder,2);
set(plugin[spot8].visible,"false");
set(plugin[spot11].visible,"false");
set(plugin[spot12].visible,"false");
set(plugin[spot13].visible,"false");
set(plugin[spot14].visible,"false");
set(plugin[spot15].visible,"false");
set(plugin[spot16].visible,"false");
set(plugin[map].url, "plans/4.png");
set(plugin[activespot].parent, spot6);
</action>
Alles anzeigen
The problem is that if I change map's plugin URL, it overwrites all spots on map! What can I do with it?
Thanks!