PDA

View Full Version : How to change Hotspot's visible value from External FLASH File


Nishant
09-22-2007, 04:53 AM
Hi Developers,


I want help from you people, i have set of panos for real estate in which some pano requires floor plan while others do not require floor plan, i have defined floor plan using Hotspot, and i have loaded Panos from External FLASH, below is the link for solid idea for you,

http://www.cybervox.net/~panotest/brigade/brigade.html

In the design the Pano strip is seperate .swf file, from that file i am able to change panos into above pano section, using

ExternalInterface.call("window.document['"+movieName+"']."+ExternalInterfaceID+"PanoExecute", "loadPano(?panoName=pano/tvroom/tvroom,300);", -2)

what i want here is, if user clicks on "common TVroom" pano, than Floor Plan should be invisible, i want to set its hotspot's visible property to 0 from .swf file, how can i do ? which command can set my hotspot propery of pano ? using ExternalInterface.call() function i am able to change properties for pano like, tilt, panKey, loadPano etc. but how can i change hotspot value which is defined in my .xml file ?

my floorplan hotspot is as follows,

<spot id="plan" static="1" salign="LT" align="LT" staticX="0" staticY="0" alpha="1" url="images/plan.png" visible="1" buttonMode="0"></spot>


i want to set its visible="0" from external FLASH file



Thanks,
Nishant