Hi all!
I have a problem with a map in a virtual tour...
With computers it is all ok, but with ipad it does not fully work.
radar, of course is not working, I mean that the"closemap" function rendes invisible only the map, and not all his children, so everything like inactive and active points is left on the stage and still working.
Is it a parent/children problem?
http://www.officinepanottiche.com/test/venicestand/tour.html</a>
thanx!
Luca.
Code
<plugin name="map" url="nav/map.png" keep="true" enabled="true" visible="false"
align="leftbottom" x="64" y="0" alpha="1.0" handcursor="false"
scalechildren="true"
width="375"
height="384"
/>
<plugin name="scene_altana" url="nav/mappoint.png" keep="true" parent="map" align="leftbottom" edge="center" x="178" y="148" zorder="2" onclick="loadscene(scene_altana, null, MERGE, BLEND(1));" />
<plugin name="scene_marcopolo" url="nav/mappoint.png" keep="true" parent="map" align="leftbottom" edge="center" x="224" y="125" zorder="2" onclick="loadscene(scene_marcopolo, null, MERGE, BLEND(1));" />
<plugin name="scene_mappa" url="nav/mappoint.png" keep="true" parent="map" align="leftbottom" edge="center" x="265" y="160" zorder="2" onclick="loadscene(scene_mappa, null, MERGE, BLEND(1));" />
<plugin name="scene_ingresso" url="nav/mappoint.png" keep="true" parent="map" align="leftbottom" edge="center" x="334" y="95" zorder="2" onclick="loadscene(scene_ingresso, null, MERGE, BLEND(1));" />
<plugin name="scene_venezia" url="nav/mappoint.png" keep="true" parent="map" align="leftbottom" edge="center" x="326" y="248" zorder="2" onclick="loadscene(scene_venezia, null, MERGE, BLEND(1));" />
<plugin name="scene_rampa" url="nav/mappoint.png" keep="true" parent="map" align="leftbottom" edge="center" x="219" y="248" zorder="2" onclick="loadscene(scene_rampa, null, MERGE, BLEND(1));" />
<plugin name="scene_angolo" url="nav/mappoint.png" keep="true" parent="map" align="leftbottom" edge="center" x="91" y="247" zorder="2" onclick="loadscene(scene_angolo, null, MERGE, BLEND(1));" />
<plugin name="scene_touch" url="nav/mappoint.png" keep="true" parent="map" align="leftbottom" edge="center" x="98" y="173" zorder="2" onclick="loadscene(scene_touch, null, MERGE, BLEND(1));" />
<plugin name="scene_esterno" url="nav/mappoint.png" keep="true" parent="map" align="leftbottom" edge="center" x="190" y="32" zorder="2" onclick="loadscene(scene_esterno, null, MERGE, BLEND(1));" />
<plugin name="scene_centrale" url="nav/mappoint.png" keep="true" parent="map" align="leftbottom" edge="center" x="226" y="65" zorder="2" onclick="loadscene(scene_centrale, null, MERGE, BLEND(1));" />
<plugin name="scene_passaporti" url="nav/mappoint.png" keep="true" parent="map" align="leftbottom" edge="center" x="285" y="65" zorder="2" onclick="loadscene(scene_passaporti, null, MERGE, BLEND(1));" />
<plugin name="scene_plastici" url="nav/mappoint.png" keep="true" parent="map" align="leftbottom" edge="center" x="162" y="65" zorder="2" onclick="loadscene(scene_plastici, null, MERGE, BLEND(1));" />
<plugin name="scene_prodotti1" url="nav/mappoint.png" keep="true" parent="map" align="leftbottom" edge="center" x="142" y="95" zorder="2" onclick="loadscene(scene_prodotti1, null, MERGE, BLEND(1));" />
<plugin name="scene_prodotti2" url="nav/mappoint.png" keep="true" parent="map" align="leftbottom" edge="center" x="206" y="95" zorder="2" onclick="loadscene(scene_prodotti2, null, MERGE, BLEND(1));" />
<plugin name="scene_prodotti3" url="nav/mappoint.png" keep="true" parent="map" align="leftbottom" edge="center" x="262" y="95" zorder="2" onclick="loadscene(scene_prodotti3, null, MERGE, BLEND(1));" />
<plugin name="scene_staff" url="nav/mappoint.png" keep="true" parent="map" align="leftbottom" edge="center" x="106" y="86" zorder="2" onclick="loadscene(scene_staff, null, MERGE, BLEND(1));" />
<!-- <plugin name="scene_ologramma" url="nav/mappoint.png" keep="true" parent="map" align="leftbottom" edge="center" x="184" y="156" zorder="2" onclick="loadscene(scene_ologramma, null, MERGE, BLEND(1));" /> -->
<!-- activated hotpot -->
<plugin name="activespot" url="nav/mappointactive.png" keep="true" parent="map" align="center" edge="center" visible="false" zorder="3" />
<plugin name="meno" url="nav/meno.png" keep="true" parent="map" enabled="true"
align="leftbottom" x="0" y="352" alpha="1.0" handcursor="true"
width="32"
height="32"
zorder="4"
onclick="action(closemap);"
/>
<plugin name="piu" url="nav/piu.png" keep="true" enabled="true" visible="false"
align="leftbottom" x="64" y="0" alpha="1.0" handcursor="true"
width="352"
height="32"
zorder="1"
onclick="action(openmap);"
/>
<plugin name="logo" url="nav/logo.png" keep="true" parent="map" enabled="true"
align="leftbottom" x="147" y="296" alpha="1.0" handcursor="true"
width="98"
height="62"
zorder="4"
onclick="action(showoutroimage);"
/>
<plugin name="background2"
url="img/bg.png"
keep="true"
children="true"
scalechildren="false"
enabled="true"
visible="false"
align="center" x="0" y="0"
alpha="1.0"
preload="true"
handcursor="false"
width="100%"
height="100%"
zorder="0"
onclick="action(hideoutroimage);"
/>
<plugin name="outroimage"
url="img/credits.png"
keep="true"
enabled="true"
visible="false"
align="center" x="0" y="0"
zorder="5"
alpha="0.9"
parent="plugin[background2]"
preload="true"
onclick="action(hideoutroimage);"
/>
<action name="showoutroimage">
set(onclick,action(hideoutroimage););
set(plugin[background2].visible, true);
set(plugin[outroimage].visible, true);
set(plugin[map].visible, false);
<!-- set(plugin[piu].visible, true); -->
</action>
<action name="hideoutroimage">
set(onclick,action(showoutroimage););
set(plugin[background2].visible, false);
set(plugin[outroimage].visible, false);
<!-- set(plugin[piu].visible, false); -->
set(plugin[map].visible, true);
</action>
<!-- RADAR PLUGIN, set heading with "plugin[radar].heading" -->
<plugin name="radar"
url="plugins/radar.swf"
zorder="1"
keep="true"
heading="0"
parent="map"
mask="mapmask"
align="leftbottom"
edge="center"
x="0" y="0"
linecolor="0"
fillcolor="0xbf0a29"
fillalpha="0.25"
scale="2.5"
visible="false"
/>
<!-- update mask for radar -->
<action name="updatemask">
set(plugin[radar].mask, mapmask);
</action>
<!-- actions -->
<action name="closemap">
set(onclick,action(openmap););
set(plugin[map].visible, false);
set(plugin[piu].visible, true);
</action>
<action name="openmap">
set(onclick,action(closemap););
set(plugin[piu].visible, false);
set(plugin[map].visible, true);
</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);
set(plugin[radar].visible, true);
set(plugin[radar].heading, %2);
</action>
Display More