PDA

View Full Version : 1st pano not reloading


spwd01
05-09-2008, 08:54 PM
I am testing FPP for the first time and I am stuck. I was able to create hotspots to go from pano1 to pano2 but when I wanted to go back to the panno1 the image does not load. I get a black pano with the hotspots.
Any help would be great.
Here is my xml code.

<?xml version="1.0" encoding="utf-8"?>
<panorama>

<parameters>
panoName=sarno_070822_01_001
layer_2 = autorotator.swf
layer_3 = movDecoder.swf
layer_4 = glassMeter.swf
layer_5 = hotspots.swf
panoType = mov

</parameters>

<autorotator>
speed = -0.5
interval = 30
pause = 5000
quality = low
</autorotator>
<hotspots>
<global onOver="scale=1.1,600,elastic;depth+=20" onOut="scale=1,300;depth-=20">



<spot id="testbutton" url="images/black_p.png" pan="-40" tilt="-10" linked="sarno_070822_01_001" onClick="loadPano(panoName=bath)" />

<spot id="testbutton2" url="images/black_p.png" pan="-50" tilt="-20" linked="bath" onClick="loadPano(panoName=sarno_070822_01_001)" />

</global>
</hotspots>

</panorama>

koma
05-09-2008, 09:43 PM
Do you have two different xmls? I'd create for each pano a specific xml, then load it like this:

onClick="loadPano(panoName=xy&xml_file=xy.xml)"

zleifr
05-09-2008, 10:13 PM
Welcome to the forum. I don't immediately see the error in your XML. It looks correct. Do you have a link to the tour that you can post? with that I could tell you what the problem is.

Also as to using multiple XML files, that would also work, but what you have already should work. (In FPP there is often more than one way to accomplish the same thing, which is a good thing, but maybe a bit confusing sometimes.)

Zephyr

spwd01
05-12-2008, 02:29 PM
Koma,
Thanks I will keep that in mind however I would like to keep from adding multiple xml files.

Zephyr,
Here is a link to the tour. I made some more changes. I added a third pano to see if it made a difference and the third pano will display the first one however it has missing blocks. Clcik the arrow from both panos to go to the first pano.

http://www.sarno.biz/test%20mov/

Thanks for any help!
Daniel

spwd01
05-12-2008, 02:55 PM
Ok,
I switched out the first pano. And all is working correctly now. It looks like the original mov file was corrupted somehow. Thanks for your help anyway. Now I need to tackle external control and a compass. Anyone know how to restrict the viewer window to just a corner of the flash window? I want to add buttons and a map but I do not want the buttons or map to overlap the pano viewer. Any help or links to tutorials would be great. Thanks.
Daniel

cheathamlane
05-12-2008, 03:12 PM
One method would be to use an "embed pano" style setup (a la the embedPano.fla example with FPP). This will allow you to design around your pano.

Another method would be to use ExternalInterface, and have 2 SWFs embedded in the same browser window (one pano, one other). EI lets other SWFs communicate with the FPP setup either directly or via Javascript. See the externalTest.fla which comes with FPP.