Hello Klaus,
This works and meets my intention, but only in Html5 mode ! Your alert is not displayed when using Flash.
Also, it does not allow multiple listening functions, eg:
|
Source code
|
1
2
3
4
5
6
7
8
|
krpano.set("events.my_custom_event_when_something_is_done", function()
{
alert("FIRST something was done inside the krpano player !");
});
krpano.set("events.my_custom_event_when_something_is_done", function()
{
alert("SECOND something was done inside the krpano player !");
});
|
...only the SECOND alert will display (although adding multiple listening functions could be extended with some code).
Also, I dont see how custom data could be passed during the event dispatch (although this could also be extended with some krpano.call() code during the event listening functions).
But the flash limitation blocks the use of this feature? How to get this working in flash mode?
Thank you !