I when I load a pano, I set some slow rotation so the user can just watch it spin if they want. I also have buttons at the bottom to spin you to north, south, east and west. The problem is that while it's in it's initial rotation mode, it won't listen to these events. I need to touch/click the screen to cause an interrupt and then call my north function. Looking at the api, it appears stopall(); or breakall(); would solve this for me. So I tried this:
Code
function setHeading(x,y){
document.getElementById("krpanoSWFObject").call('stopall();lookto('+x+','+y+',get("view.fov"))');
}
Well this doesn't work? How can I made a call to my javascript function setHeading() kill the rotation animation? Btw, this is the startup action in my xml file: