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.
![]() |
Source code |
1 2 3 4 5 |
addhotspot(spot1); set(hotspot[spot1].url, 'spotimage.png'); set(hotspot[spot1].ath, 123.45); set(hotspot[spot1].atv, -12.34); set(hotspot[spot1].onclick, showlog(); trace('spot1 clicked'); ); |
Ok thanks, now I had another doubt while I was adding the hotspot, how could I retrieve the event's click position... The documentation states that we have the events tag, where I would set the actions that I want to execute on the onclick event, but then I would like to do some processing wich the data of the position where I clicked on the screen, ath, atw... etc. Is there a way to retrieve this?.
This post has been edited 1 times, last edit by "pablo_ivan57" (Jun 18th 2012, 6:19am)
you can create and store any kind of variables directly at the hotspot,EDIT: Sorry it worked with the name variable, I got confused. Thanks a lot.
![]() |
Source code |
1 |
set(hotspot[get(lastCreatedHotspotName)].anything, ...); |