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:
|
PHP-Quelltext
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<!-- 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