Hi,
i was trying and playing with the bgborder of a container.
when i like to change the bgborder it took me some time to find out that when you set it, it is like this:
bgborder="10,5,10,5 0xff0000 1"
but when you want to change it, you should leave the comma's out
like:
set(layer[test].bgborder, 20 20 20 20 0xffffff 1);
so i made an example to test it but it is not working good i think. Maybe i do something wrong..
http://www.virtualtuur.com/krpano/bgborder/
click the yellow button to switch
so the first change is ok but the change back skips the color change of the border.
i also tried:
switch(layer[test].bgborder, 20 20 20 20 0xffffff 1, 10 5 10 5 0xff0000 1); <=== DOESN'T WORK
switch(layer[test].bgroundedge, 200, 20);
roundedge works ok, border not.
xml http://www.virtualtuur.com/krpano/bgborder/tour.xml
EDIT: example changed after answer Klaus
Tuur