You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Sunday, August 28th 2011, 10:20pm

create hotspot Actionscript??

Hi recently I'm learning as3, my question is you can create a hotspot with as3 to be created to add apartir the action of a normal plugin.

thanks

2

Friday, September 2nd 2011, 9:38am

Hi,

see here the documentation about the plugin interface:
http://krpano.com/docu/plugininterface/

e.g. to add an hotspot do:

Source code

1
2
3
4
5
6
7
8
var spotname:String = "spot1";
krpano.call("addhotspot(" + spotname + ")");
var spot:Object = krpano.get("hotspot["+ spotname + "]");
spot.url = "spotimage.png";
spot.ath = 0;
spot.atv = 0;
spot.onclick = function():void{ krpano.call("showlog()"); krpano.trace(1,"spot clicked..."); };
...


best regards,
Klaus

3

Sunday, September 4th 2011, 12:24am

Gracias