PDA

View Full Version : Listen to Hotspots


roccogonzales
11-07-2008, 02:10 PM
Hey,

first of all, i would like to thank Patrick for the Embed Pano 101 (http://flashpanos.com/tutorials/patrick/embedding-fpp-panoramas-another-flash-container) - this really saved a lot of my time ;-) I also modified the EmbedPano a bit so it fits my clients demands: new Design, multilevel-navi with thumbscroller ...
Then i added some hotspots (with the Hotspots-Plugin) to my tour - these work as well.

But the thing i don't get is:
When i navigate with the hotspots, how can i catch (or listen to) the current Panorama loaded, in my EmbedPano.swf? What I found out is to get the "panoName" with this code:

panorama.externals.hotspots.panoName

But how do i get the "id" or other attributes placed in the xml?

<spot id="Aussenaufnahme" url="files/hotspotpfeil.swf" .....

I would be happy bout a tip or a link to further information to my "problem".

thx,
rocco

LepLep
11-08-2008, 05:25 AM
http://flashpanoramas.com/forum/showthread.php?t=1456&highlight=listen+hotspots

roccogonzales
11-10-2008, 12:32 PM
Thank you for the link. But i dont think, that this thread shows me, what i'm looking for. Let me describe:
In the container, i'm loading the Panorama into, i want to know what value the ID of current pano has got.

I found out that i can use this code and listen to the attributes:


//this is tracing the value of id (it is "aussenaufnahme")
panorama.externals.hotspots.getSpot("aussenaufnahme").getParam("id");
//this is tracing the value of alt
panorama.externals.hotspots.getSpot("aussenaufnahme").getParam("alt");


But how does the container get to know which is the current id?

What i "want" is something like this, which returns the value of the current id:


panorama.externals.hotspots.id.getParam("id");
//or maybe only this:
panorama.externals.hotspots.id;


I would be happy bout some advice! Thx,
rocco

LepLep
11-10-2008, 05:07 PM
(i just started to learn as3, but in lack of any answers i try ;)

i dont understand id of what you want to read?
ExternalInterfaceID?
or panoName?

second would be panorama.externals.hotspots.panoName

but im not sure if it fix your problem