And again about 1009 error

  • Using my own plugin and every time I click on my own hotspot I got error:

    Quote

    Error #1009: bla-bla-bla is "null".
    at krpano::krpano_plugin/event_click()

    Then new panorama is loading like everything is ok. And sometimes after this bug new panorama is following cursor like there were no mouseUp event. Seems like there is a bug in krpano, any ideas?

    If someone interesting my simplifyed actionscript:

    Code
    myhotspot.addEventListener(MouseEvent.CLICK,myhotspotClickHandler); 
    
    
    function myhotspotClickHandler(e:Event):void{
     	krpano.call("loadxml(xml, null, KEEPBASE, BLEND(2)");
    }
  • Hi,

    yes, it's possible that it will still running, but the internal structures in krpano about the plugin will be removed,
    I think this is the problem,

    do you get this error also when adding - keep="true" - in the xml for your plugin?

    best regards,
    Klaus

  • okay, then it seems the problem comes from the hotspots,

    Quote

    myhotspot.addEventListener(MouseEvent.CLICK,myhotspotClickHandler);

    function myhotspotClickHandler(e:Event):void{
    krpano.call("loadxml(xml, null, KEEPBASE, BLEND(2)");
    }

    what is "myhotspot" in this case?

  • Hi, I found the problem:

    - you have added your own MOUSE_DOWN listener to your hotspot
    - and in your MOUSE_DOWN you call "loadPanorama" which loads again a new xml
    - a new pano/xml means - hotspots/plugins without keep="true" are removed

    now the problem:
    - the original krpano MOUSE_DOWN event was handled AFTER your MOUSE_DOWN event
    - but when it happen the hotspot was already removed because a new pano was loaded

    in krpano itself this situation can't happen
    but I have changed krpano now that your code will work too (available with the next beta release)

    as workaround you could use the normal krpano plugin "ondown" event from the hotspot,
    or "delay" the loading of the new pano a bit...

    best regards,
    Klaus

  • setTimeout forever.

    Hi,

    don't use this function!!!
    it can hang/crash the browser when Flashplayer version 10.0.12.36 is used! (only this version)

    I had used it in beta7, see here:
    https://krpano.com/forum/wbb/inde…D=2655#post2655

    better would be:

    best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!