You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

viewinz

Intermediate

  • "viewinz" started this thread

Posts: 145

Location: Wellington, New Zealand

Occupation: Trying to build an entire walkthrough of NZ for tourists

  • Send private message

1

Saturday, January 30th 2010, 12:27am

Previous/Next scene buttons

Hello,

Anyone any idea how to do a previous or next scene button that will load the previous or next scene in a scene list? If it's the last scene the next one needs to be the first and if it's the first scene the previous one needs to be the last if that makes sense?

Cheers..

VN2009

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

2

Saturday, January 30th 2010, 1:18am

http://www.virtualnorthland.com/panos/caf/

click on tour extras then click tickerhoof day i made a previous and next buttons. added some of the code i used below. obviously the plugins are called pre and next.

<action name="aday2">

set(plugin[pre].visible,true);
set(plugin[next].onclick,aday3());
set(plugin[pre].onclick,aday());

</action>

<action name="aday3">

set(plugin[next].onclick,aday4());
set(plugin[pre].onclick,aday2());

</action>

<action name="aday10">

set(plugin[next].visible,true);
set(plugin[next].onclick,aday11());
set(plugin[pre].onclick,aday9());

</action>

<action name="aday11">

set(plugin[next].visible,false);
set(plugin[pre].onclick,aday10());

</action>