I am trying to find the code to toggle to full screen i have seen a few panos with a triangle in the bottom corner i also want to view left and right with zoom in and out all in the same colour black with silver or white text.
any help please
![]()
I am trying to find the code to toggle to full screen i have seen a few panos with a triangle in the bottom corner i also want to view left and right with zoom in and out all in the same colour black with silver or white text.
any help please
![]()
Hi,
the fullscreen mode can be changed by changing the "fullscreen" varaible,
e.g. to switch to fullscreen:
for switching back:
to toggle between the two states:
note - due the flash security restrictions the fullscreen mode can be only changed as reaction to a user input,
that means it will only work in the code from a mouse or keyboard event,
e.g.
best regards,
Klaus
Hi there,
I have another problem with fullscreen. When pano is in fullscreen and I call action wait(1000); If I exit fullscreen by pressing key ESC, the action exitfs(); in krpano event onexitfullscreen isn't called. Function exitfs is called later, when I click somewhere - called by oninterrupt event.
I think the event oninterrupt(exitfs()) should be called when I press ESC. Is it possible or is there any hack?
onexitfullscreen="exitfs();"
...
set(fullscreen, true);
oninterrupt(exitfs(););
wait(1000);
Thanks in advance
Don’t have an account yet? Register yourself now and be a part of our community!