Can a hotspot to control an external javascript in html?

Using Pano2VR/Object2VR SWF files with your own Flash projects
Post Reply
Kristoffer
Posts: 2
Joined: Tue Nov 15, 2011 3:14 pm

(This question is for the HTML5 version, but there is no forum for that, and as I understand it, the API is very similar.)

I'm using pano.openNext in a javascript to load panoramas, but I would also need the hotspots (both in panorama and minimap) to communicate back to javascript.
Preferably sending back what xml-file is loading.

Is this possible?
commodore64
Posts: 40
Joined: Mon Feb 16, 2009 11:38 am

the documentation is sadly lacking much on the scripting.. : /

basically take a look at skin.js, insert your own code there.

For example,
on hotspot click, insert your function there,
so you can catch which hotspot(id) is clicked.
Post Reply