event onpreviewcomplete lost

  • Hi,

    I'm trying to developp a plugin in as3, but I have a little problem.

    In the initialisation of my plugin, I set an onpreviewcomplete event :

    Code
    krpano.set("events.onpreviewcomplete", clear_transition);

    Then I load a new panorama from my plugin.

    The problem is when an onpreviewcomplete event exist in the xml of the new panorama, it replace the one I created in my plugin and never call my function.

    Is there a way to keep the event in the new panorama and add the call of my funcion clear_transition ? I want to do it in my as3 code, and not adding it in the xml.

    I have thought adding an event onxmlcomplete in my plugin that will get the onpreviewcomplete event from the new xml and add my function but, if the onxmlcomplete event exists in the new xml, it will also replace the one from my plugin.

    Thanks

    Yannick

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!