Hi all
I'm trying to toggle the image of a button, and in the same time I make another plugin appear and disappear. Each command work separately, but not both in the same click : the MapType image loads but disappear immediately)
It works if I write:
Code
onclickA="set(state,'A'); set(plugin[MapType].visible,true); "
onclickB="set(state,'B'); set(plugin[MapType].visible,false); "
onclick="if(state == 'A', onclickB(), onclickA() ); "/>
...also if I write:
Code
onclickA="set(state,'A'); set(url,MapOff.png);"
onclickB="set(state,'B'); set(url,MapOn.png);"
onclick="if(state == 'A', onclickB(), onclickA() ); "/>
...but not if I mix both:
Code
onclickA="set(state,'A'); set(plugin[MapType].visible,true); set(url,MapOff.png);"
onclickB="set(state,'B'); set(plugin[MapType].visible,false); set(url,MapOn.png);"
onclick="if(state == 'A', onclickB(), onclickA() ); "/>
At start, MapType is hidden with an onStart action in the krpano declaration tag)
I played (!) hours with that and didn't find anything. I surely miss something, but I don't know what.
I've tried also calling actions with no success.
Where is my mistake?
Thanks
Phil