i solved it by replacing Quoted krpano.call("openurl("http:\\www.google.com",_self);"; with Quoted krpano.call("openurl('http:\\www.google.com',_self);";
i have Source code 1 <action name="click1" type="javascript"> var mx = krpano.get("mouse.x"); var my = krpano.get("mouse.y"); var pt = krpano.screentosphere(mx,my); krpano.trace(1, "mouse="+pt.x+"/"+pt.y); krpano.trace(1, "pano="+pt.x+"/"+pt.y); var uniqname = "hs" + Date.now(); krpano.call("addhotspot(" + uniqname + ");"); krpano.call("set(hotspot[" + uniqname + "].ath," + pt.x + ");"); krpano.call("set(hotspot[" + uniqname + "].atv, " + pt.y + ");"); krpano.call("set(hotspot[" + uniqname + "]....
i'm using screen to sphere to place hotspot at the points which i took from flat image.and it's not being placed at the right positions. i tried to find image 0,0 points and they are different, they aren't image start.now i do i map?
i need help.i'm displaying a panorama as a flat image in the app to get hotspot from user.now how do i map them to krpano generated panorama. screentosphere not working for me.
i'm trying to add hotspot at mouse clicked coordinates. i tried Source code 1 2 3 4 5 6 7 8 9 <action name="click1" > showlog(true); addhotspot(newspot); screentosphere(mouse.x,mouse.y,toh, tov); trace(toh); trace(tov); set(hotspot[newspot].url,q.mark.png); set(hotspot[newspot].ath,toh); set(hotspot[newspot].atv,tov); set(hotspot[newspot].onclick, removehotspot(newspot) ); </action> it's not working for me.but if i replace toh and tov with values then it works perfectly.what could be the problem...