View Full Version : hotspot controll the main.fla
behrda
06-11-2007, 05:40 AM
Hi Denis,
I have embed the pano.swf in a main.fla like you did in embedPano.fla.
Now I want to change the backround-color of the main.fla with a click on a hotspot in the panorama. is this possible and how can I implementate the functionality?
Thanks to all how can help
Dario
Denis
06-11-2007, 05:22 PM
I think the simplest way is to add some code to your swf hotspot to call the root application using "root." or "parent.loader" and so on...
Another way is to look through all panorama children and find your object, add event listener to it.
upbeat.addict
06-11-2007, 09:01 PM
Denis,
Can you provide some code as an example for this technique? I've been trying to figure this out all day. I have a FLA that embeds the panorama, but I need to be able to extend the hotspots' scope of functions beyond just altering the pano and loading new ones. I need to be able to access function/variables and object located in the main FLA. Is this possible? I read in another post that you were working an API for calling custom actionscript. Will this be possible soon?
Also, have you considered packaging the player as a AS3 library. It would make embedding much easier for those who wish to integrate the player rather than use it as stand alone. Plus it would be nice to have it as a drag/drop component in Flex.
Thanks in advance for any help you give. I appreciate it.
-upbeat.addict
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.