Hello,
based on the solution from Klaus http://www.krpano.com/forum/wbb/inde…d&threadID=1441 I made an example tour with 1.0.8.12.
The automatic tour looks to 3 points (each with image and sound for 10 seconds). The user can interrupt the tour und the tour resume after some seconds (onidle-event).
It works very well. The only problem is: the user can only interrupt on the way to point1. Inside the action point2 its not possible to interrupt. I think there is no difference between the first and the second action.
Any ideas?
Regards karl
Code
<action name="setuptour">
set(step,1);
set(idletime,4);
set(events.onidle, autotour() );
showlog();
trace('Inside Setuptour: ',step);
</action>
<action name="autotour">
trace('Start in Autotour...',step);
oninterrupt(break);
if(step == 1, point1(); );
if(step == 2, point2(); );
if(step == 3, point3(); );
</action>
<action name="point1">
oninterrupt(break);
trace('in Point1....');
lookto(-2,-14, 32, smooth(1,5,50));
action(showimage,img1);
playsound(auto,sounds/music1.mp3);
wait(10);
action(hideimage,img1);
inc(step);
trace('End Point 1: following...',step);
</action>
<action name="point2">
oninterrupt(break);
trace('in Point2....');
lookto(-195,-2,15,smooth(5,5,5),false);
action(showimage,img2);
playsound(auto,sounds/music2.mp3);
wait(10);
action(hideimage,img2);
inc(step);
trace('End Point 2: following...',step);
</action>
...... action point3
...... showimage
...... hideimage with stop sound
Display More