Hallo.
I a have a pano tour with two maps.A buton to close and to zoom the map.
I store the state of the map in 2 variables zoom_var and close_harta.
If close_harta is 1 then the map is closed and 0 it's opened.
The problem is when i close the map from the first xml (sets close_harta to 1) and then go to the next xml(clicking the arrow) the map won't open in the second xml.
Opening the map is done by checking the close_harta value.
i've done a trace(close_harta) in the second xml and it doesn't show the value 1 , it passes it as 0.
all the ations and definitions for map and mydata are included in an external xml that is included in all other xml's
<mydata
stare_harta="0"
zoom_var="-552"
close_help="0"
close_harta="0"
tween_harta="default"
tween_time="0.5"
/>
onclick event for showing the map buton:
onclick="if(mydata.close_harta==1,action(buton_harta2_activate);showmap(map,map2,false,true),action(buton_harta2_activate);switchmap(map2,map););"
action to showmap
tween(plugin[%1].x,0, get(mydata.tween_time), get(mydata.tween_harta));
tween(plugin[%2].x,0, get(mydata.tween_time), get(mydata.tween_harta));
wait(1);
set(mydata.close_harta,0);
action to closemap
set(autorotate.enabled,false);
tween(plugin[%1].x, get(mydata.zoom_var), 0.4, effect_harta, set(plugin[%1].visible,true));
tween(plugin[%2].x, get(mydata.zoom_var), 0.4, effect_harta, set(plugin[%2].visible,true));
wait(0.8);
set(mydata.close_harta,1);
set(autorotate.enabled,true);
I belive that when passing from an xml to another mydata is not stored , it is overwritten. How do i save the data?
Here u can see the tour.
http://360concept.ro/panorame/DEMO/ultimatetur/index.html