• Hi Klaus,

    I'm wondering why isn't onstart an event like this:

    Code
    <events
          onstart="startup()"
    />

    The reason I ask for this,

    1) It seems logical it's place is in the events, just like a ADDED_TO_STAGE or document.ready is in Flash/Javascript
    2) I have a plugin that I want to register it's own onstart event. This is a plugin in the DOM and I want to signal when krpano is initialized. Seeing you now have named events, I'd like to see the onstart alsoo work like this

    Code
    <events name="custom" onstart="custom_onstart" />


    If this isnt possible, is it possible that the tour.js triggers an event once krpano is ready (iow krpano.call('loadscene(test)") would work)

  • Hi,

    the <events> and named <events> were added much later in the development of the krpano,
    but that normal "onstart" event was there since version 1.0.0,

    but in the <events> there is on the "onxmlcomplete" event which is practically the same like the "onstart" - both events will be called at the same time,

    best regards,
    Klaus

Jetzt mitmachen!

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