PDA

View Full Version : 2 questions ever seen on this forum ...


cbc
04-25-2008, 08:37 AM
Good morning,

I have 2 questions:


1 - What is the equivalent of:

Code that works for a hotspot box:

If (event.target == "[object SpotSprite]")
(
btnId = event.target.attributes.getParam (id);
)

Code is not working for a hotspot spot:

If (event.target == "[object DynamicLoader]")
(
btnId = event.target.attributes.getParam (id);
)


2 - Is it possible to listen to the change of a hotspot:

Code that works to listen to a button hotspot :

panorama.externals.hotspots.hotspots_obj.addEventL istener( MouseEvent.CLICK, go_listener );

Code which does not listen to the status of a hotspot:

panorama.externals.hotspots.hotspots_obj.getSpot("nav").getParam("visible").addEventListener( Event.CHANGE, go_listener );


Thank you in advance for your answers. Sorry for the direct questions. My level in English is ridiculous, so it avoids too many errors in translation. :cool:

Best regards,
Cbc.