Events in web-project-templates-master

Dear All,

In web-project-templates-master example what the following instructions do?

self.getApplication().InvokeEvent(‘StartInteractionEvent’)
self.getApplication().InvokeEvent(‘EndInteractionEvent’)
self.getApplication().InvokeEvent(‘UpdateEvent’)

Another question: Are there any superposition of the run of handler of the events generated by the browser? Or an event is ran only after the before one is finish?

Thanks,

Luís Gonçalves

self.getApplication().InvokeEvent(‘StartInteractionEvent’)
=> Start animation loop which keep rendering based on targeted fps

self.getApplication().InvokeEvent(‘EndInteractionEvent’)
=> Stop animation loop that was previously started

self.getApplication().InvokeEvent(‘UpdateEvent’)
=> Do a single render

For the other question, I don’t know as I don’t understand it.

The other question is:
In the web browser are generated several events. Are those events handled in parallel or in serial?

Everything is serial. But I still don’t get what is the relationship between the server question and the browser events (also what events are you talking about?).

Browser Events → Key pressed, Mouse Pressed and Moved
Server Side → Handlers of the above events.
You say:
Several Browser Events → Handled serial in server.

What happen if we start a
self.getApplication().InvokeEvent(‘StartInteractionEvent’)

without a

self.getApplication().InvokeEvent(‘EndInteractionEvent’)

in the end?

The server will keep pushing images for ever like a movie.