PDA

View Full Version : I Cannot Place Hotspots!!!


robrockyeah13
11-20-2007, 01:12 PM
I have a problem.
I bought recently Panorama Flash Player and i'm following all the steps to do a virtual panorama tour.
I made my first 2 panoramas and i want to link them each other by hotspots.
I tried so many ways but hotspots are not working or they appear everytimes everywhere in the first panorama (also the hotspots from the second panorama).
Can someone help me?



- The files that i have are:

panorama01.swf (and all the jpeg files)

panorama02.swf (and all the jpeg files)

hotspots.swf

panorama01.xml

spots.xml

button01.png (to link the first pano to the second)

button02.png (to link back the second pano to the first)



- In panorama01.xml i wrote:

<?xml version = '1.0'?>
<params>
<param name="segments" value="10" />
<param name="layer_2" value="hotspots.swf" />
</params>



- In spots.xml i wrote:

<?xml version="1.0" ?>
<hotspots>

<spot id="button01" url="button01.png" pan="82" tilt="0" onClick="loadPano(panorama02.swf),-;
change:panorama02,alpha,0.5;
change:panorama02,buttonMode,0;
change:panorama01,alpha,1;
change:panorama01,buttonMode,1;" />

<spot id="button02" url="button02.png" pan="-115" tilt="0"
onClick="loadPano(piazza.swf),-;
change:panorama01,alpha,0.5;
change:panorama01,buttonMode,0;
change:panorama02,alpha,1;
change:panorama02,buttonMode,1;" />

</hotspots>



Is it something wrong in that???:confused:

Can someone write me a right way to do it good?
Very very very thaks guys!!!!!!

zleifr
11-20-2007, 02:48 PM
first don't use the "change:" syntax; it has been deprecated. And second in button01 put linked="piazza.swf" and in button2 put linked="panorama02.swf"

robrockyeah13
11-20-2007, 05:16 PM
Thanks thanks, but it still doesn't work!!!

Now i have in piazza.xml (before it was panorama01.xml) this:

<?xml version = '1.0'?>
<params>
<param name="segments" value="10" />
<param name="layer_2" value="hotspots.swf" />
</params>


...and in spots this:

<?xml version="1.0" ?>
<hotspots>

<spot id="a_sanantonio" url="a_sanantonio.png" linked="piazza.swf" pan="82" tilt="0"
onClick="loadPano(sanantonio.swf) />

<spot id="a_piazza" url="a_piazza.png" linked="sanantonio.swf" pan="-115" tilt="0"
onClick="loadPano(piazza.swf) />

</hotspots>



Is there still something wrong???
Hotspots don't appear, it's like they're not loaded from spots.xml!!!

zleifr
11-20-2007, 05:37 PM
Let's start this over:

you only need one xml file. Here is what it should look like:

<?xml version="1.0" ?>
<panorama>
<parameters>
layer_2 = hotspots.swf
segments=10

</parameters>
<hotspots>
<global >
<spot id="sanAntonio" url="a_sanantonio.png" pan="82" tilt="0" linked="piazza.swf"
onClick="loadPano(sanantonio.swf)" />
<spot id="piazza" url="a_piazza.pn" pan="-115" tilt="0" linked="sanantonio.swf"
onClick="loadPano(piazza.swf)" />
</global>
</hotspots>
</panorama>


And then when you've got that working, I recommend using pano.swf from one central location and using the panoName=path/to/pano/images parameter and loadPano(?panoName=path/to/next/pano, 500, fade) style of doing things. When pano.swf gets updated you won't have to switch out tons of identical files all over the place. Just one.

But first get the hotspots working.

zleifr
11-20-2007, 05:38 PM
And in the linked param, I don't know whether you should have .swf in there or not, as I don't usually do it that way, so if it doesn't work remove that and try again.

robrockyeah13
11-20-2007, 05:53 PM
Yeah, great it is working (without .swf as you said) but just the first hotspot to go in the second panorama, i don't see the hotspot in the second panorama to come back to the first.

robrockyeah13
11-20-2007, 05:56 PM
Oh NO NO NO EVERYTHING IT'S WORKING!!!!!!!!!!!!!!
REALLY THANKS, IT WAS JUST AN ERROR WHEN I WROTE THAT.