very odd... I did this same thing...
|
Quellcode
|
1
2
3
4
|
<action name="directionalaudio">
switch(hotspot[b1].visible);
switch(hotspot[b2].visible);
</action>
|
... and it worked fine... using either the swf hotspot or a png hotspot.
If the action name was spelled differently between the defining portion and where you called for it, you would get an error. Only other thought I have right now would be to make sure the action name isn't used twice or defined in two different areas.
I was able to recreate the same behavior when using one action to change just two hotspots visibility and another set to change them all... but with some interesting results.
action 1 - switch b1 and b2
action 2 - switch all
action 1 worked fine on it's own
action 2 worked fine on it's own
However, if I first clicked action 1 (hide b1 b2) and then clicked action 2 over and over (hide all / show all / hide all / show all)... b1 and b2 stayed gone, the other hotspots toggled visible back and forth...
BUT once I clicked action 1... which brought back b1 and b2... and then toggled action 2... ALL hotspots switched back and forth.
I don't know if that would be considered a bug... or just a limiting factor when dealing with hotspots and the switch action.
Will have to wait for Klaus' input on this item.