Darrell_360fusion
08-25-2007, 07:38 AM
I'm trying to do something which in concept is the same as behrda & upbeat.addict. I need to call one of my functions in my main .fla from a hotspot in the embeded pano.swf
At present I see that the hotspot onclick action is called using the xml syntax:
onclick="loadPano(?panoName=[path])".
What I need to do is add a hotspot to the pano (there is a property 'loadPanorama' in the PanoController, is there one for say 'loadhotspot' or something?), add an eventlistenser e.g. myHotspotName.addEventListener(MouseEvent.CLICK, runMyFunction); to the hotspot from in my main .fla and call a different function.
This must be achievable but I cannot for the life of me work it out. Please could anyone with this knowledge provide some help on how to do this and give an example. I would be very grateful.
At present I see that the hotspot onclick action is called using the xml syntax:
onclick="loadPano(?panoName=[path])".
What I need to do is add a hotspot to the pano (there is a property 'loadPanorama' in the PanoController, is there one for say 'loadhotspot' or something?), add an eventlistenser e.g. myHotspotName.addEventListener(MouseEvent.CLICK, runMyFunction); to the hotspot from in my main .fla and call a different function.
This must be achievable but I cannot for the life of me work it out. Please could anyone with this knowledge provide some help on how to do this and give an example. I would be very grateful.