Thank you, now I faced some trouble when adding them dinamically, the problem is that I need to retrieve the name that was used to create the hotspot when the user clicks on it. However since the name is dinamically generated, the variable that's used to create the names changes after that. For example the following code:
<action name="addNewHotspot">txtadd(lastCreatedHotspotName,'newHotspot',get(serial));
addhotspot(get(lastCreatedHotspotName));
set(hotspot[get(lastCreatedHotspotName)].url, '%CURRENTXML%/hotspot/hotspotInfoImage.png');
screentosphere(mouse.x,mouse.y,toh,tov);
set(hotspot[get(lastCreatedHotspotName)].ath, get(toh));
set(hotspot[get(lastCreatedHotspotName)].atv, get(tov));
showtext(get(lastCreatedHotspotName),infostyle);
set(hotspot[get(lastCreatedHotspotName)].onclick , showtext(get(lastCreatedHotspotName),infostyle););
add(serial,1);
</action>
The problem is that when a hotspot is clicked, it's showing the lastCreatedHostpotName value ( In other words tha last generated name)... how could I modify it in order to retrieve the clicked hotspot's name? Thank you so much.