Hallo Bernd,
dass hier lohnt sich mal, auszuprobieren. Die Actions mußt Du dann nur beim onclick-Event auf den Button aufrufen.
Ich habs nicht getestet, sollte aber klappen:
$this->cacheCode('[php]','
<!-- Alle Hotspots ausblenden -->
<action name="hideAllHotspots">
if(%1 != NEXT, set(i,0));
hideHotspot(get(hotspot[%i].name));
inc(i);
if(i LT hotspot.count, hideAllHotspots(NEXT));
</action>
<!-- Alle Hotspots einblenden -->
<action name="showAllHotspots">
if(%1 != NEXT, set(i,0));
showHotspot(get(hotspot[%i].name));
inc(i);
if(i LT hotspot.count, showAllHotspots(NEXT));
</action>
<!-- Einen Hotspot ausblenden -->
<action name="hideHotspot">
tween(hotspot[%1].alpha, 0, 0.5, default, set(hotspot[%1].visible,false));
</action>
<!-- Einen Hotspot einblenden -->
<action name="showHotspot">
set(hotspot[%1].visible, true);
tween(hotspot[%1].alpha, 1.0);
</action>
')
Grüße
Karsten