You are not logged in.

1

Wednesday, February 2nd 2022, 6:34am

How to check that while XML is loaded with all the attributes like scene hotspots etc using javascript

I have function which needs to be called after scene is fully loaded with their hotspots using javascript.
Belo is my code :-




loadKRpanoView(xmlFile, swfFile);
this.krpanoObj = document.getElementById('krpanoSWFObject');
this.krpanoObj.set('events.onloadcomplete', this.callHotspotNames());
this.krpanoObj.set('events.keep', true)

Here I have tried event on load event but it not working anyway it is calling before scene is fully loaded so the callHotspotNmae is calling anyway

Any Help will be appreciated *smile*

2

Wednesday, February 2nd 2022, 9:43am

var myEvent = this.krpanoObj.events.createItem('myEvent');
myEvent.onloadcomplete = 'trace("onloadcomplete");';
myEvent.keep = true;

This post has been edited 2 times, last edit by "indexofrefraction" (Feb 2nd 2022, 10:04am)