You are not logged in.

Zephyr

Professional

  • "Zephyr" started this thread

Posts: 1,003

Location: Netherlands

Occupation: Web developer

  • Send private message

1

Thursday, April 19th 2012, 9:59pm

onstart event

Hi Klaus,

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

Source code

1
2
3
<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

Source code

1
<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)

2

Saturday, April 21st 2012, 4:22pm

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

Similar threads