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

Friday, March 2nd 2012, 1:05pm

listen AS3 MOUSE_OVER on all hotspots

Hi

while using FPP, it was possible to do this in AS3 plugin to listen the MOUSE_OVER event on all hotspots:

Source code

1
hotspots.addEventListener(MouseEvent.MOUSE_OVER, doOver, false, 0, true);


while hotspots was the global hotspots object.

How to do this with the krpano AS3 interface?

regards

2

Friday, March 2nd 2012, 5:35pm

Hi,

you could get the flash hotspot layer and your events to that,
e.g.

Source code

1
2
var hotspotlayer:Sprite = krpano.get("hotspot.layer");
hotspotlayer.addEventListener(...);


see:
http://krpano.com/docu/xml/#hotspot.layer

best regards,
Klaus

Similar threads