I built a simple plugin that registers a click on a box and calls krpano.call("action(load2)"). If the function in the action is loadpano(pano2.xml), I get this:
Code
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at krpano::krpano_plugin/event_click()
when it loads the new pano even though when this action is called by a hotspot I don't get the error. If I change the function in the load2 action to delayedcall(0,loadpano(pano2.xml)) I don't get an error. Any idea as to what might be going on? I am baffled.
Thanks