I would really appreciate a little assistance with this, if someone knows an answer.
I want to have a pano turn/zoom to a certain location a number of seconds after it loads. I've managed this using delayedcall in the onstart event, like this:
onstart="action(startview);
delayedcall(8, action(turnview); );"
The 'startview' action that's kicked into life by the onstart event shows a particular view location and scale. The 'turnview' action that's invoked 8 seconds afterwards by delayedcall() turns the pano to a different position and scale.
The reason for having this delayed event is to help make people realise that this is not just a basic photo; to get their attention enough, with luck, for most people to then see the info about clicking and dragging (there's a small note beneath the image) or simply try dragging it themselves.
HOWEVER - it is actually a bit annoying if you've already started looking around the pano for it to suddenly start turning to a different view point. My ideal solution would be some kind of 'flush events' call that killed off anything that's been set to be pending. Is there anything that can do this?
Using "oninterrupt( stopall() )" does stop events that are in the immediate queue (such as a consecutive series of tweens) but it doesn't stop a delayedcall event from kicking in later on, even if the 'timer' was started within the interrupted event.
Does anyone see a way to do this? Or perhaps achieve the same sort of effect in some other way?
k (fairly new to KRPano but loving it)