View Full Version : Pass variables to hotspots
cortezz
07-26-2007, 01:00 PM
May be that i'm not thinking clearly, but is there any way to pass variables to the hotspots. Lets say i have a hotspot called "spot.swf" and i'm using the same hotspot 20 times in my panorama. I want that every hotspot is able to read specific xml-file.
<spot id="spot1" url="spot.swf?spotNumber=1"> doesnt' seem to work. Of course I can do "spot1.swf" "spot2.swf" separately but that seems so complicated.
Am I missing something here?
Any help would be appreciated.
sonicoliver
07-27-2007, 06:24 AM
yes yes,
to be able to call functions within swf hotspots would also be great.
Well, I just tried something like <spot id="spot1" url="spot.swf?spotNumber=1"> and it worked… In AS u can query the string with ease: trace(spotNumber);
dougeefresh
03-20-2008, 07:53 PM
I just tried passing a variable using this method and it doesn't seem to work. swf movie doesn't get loaded when I attach a variable using "?"
well, it works here.
what I have in the pano-xml:
<spot url="panos/hotspots/mod_info.swf?XMLpath=../modules/info/Solothurn/Studer.xml" />
and in the swf spot, with AS2:
XMLdaten.load([XMLpath]);
with that I can load an xml (here Studer.xml) into that spot
zleifr
03-24-2008, 10:25 PM
If you want to pass something to a .swf hotspot via the query string, then take a look at flvplayer.swf. It has the code for exactly this.
Zephyr
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.