Hi to all
I'm developing a quite bit complex panorama xml file.
A quite large of actions are stored.
The first one, called on xmlcomplete event, parse the hotspot objects arrays, setting new attributes, creating "background" hotspot with proper z-order and son on.
for(set(i,0), i LT get(hotspot.count), inc(i),
add(risulta, hotspot[get(i)].ath, offsetH);
set(hotspot[get(i)].edgeR,get(risulta));
set(hotspot[get(i)].onhover,"hover2Hs()");
set(hotspot[get(i)].onout,"out2Hs()");
set(hotspot[get(i)].onclick,"clickHs()");
set(hotspot[get(i)].zorder,20);
...........
);
Display More
they're other actions to manage onhover, onclick, onout events. another one that poll periodically the ath and detect if is there a "near" hotspot and set action on it. In short a little bit code on every xml panorama files.
the problems occour changing panorama.
I use the loadpano command, with different flags.
In the new panorama, in the initial action it seems that the hotspot objects arrays is "crazy": duplicated hotspot appears, only the count is always right.
It seems to me that no a complete reset of the "enviroment" is done.
I also try to use the resetkrpano in the krpano.xml example, but doen't solve the problem.
Any kind of idea, suggestion?
thanks to all
zeno