I have some xml that includes this:
<hotspot type="Info" panoURL="" fixed="true" action="click" pan="0" tilt="0" myvar="hello">
<description>tesths</description>
</hotspot>
In flash, this code works with a component that lets me view images in panorama form. There are “hotspots” on the panorama that when clicked let me do something. This component is called “panorama.” According to the documentation that comes with this…I can press a hotspot using this code:
import com.jumpeye.Events.JCPanoramaViewerEvents;
panorama.addEventListener(JCPanoramaViewerEvents.HOTSPOT_PRESS, hotspotPress);
function hotspotPress(evt:JCPanoramaViewerEvents):void {
trace("hotspot pressed... "+evt.attributes+" :: "+evt.contents);
}
The problem is that I have multiple hotspots and I want to use “myvar” in the xml to identify which one has been pressed. I’ve tried tracing using: evt.attributes.myvar…but I just get nothing back (not even an undefined). how am I doing this wrong?