![]() |
|
|
|
#1
|
|||
|
|||
|
Hi there,
I have a problem trying to load a new pano with a new xml file... Reading the tutorials it seems to be very easy with the command: Code:
onClick="loadPano(panoName=petit/vert&xml_file=vert.xml)" You can have a look here : http://www.360images.fr/360/Les_Sables/tour.html In the first xml file (tour.xml) I have a spot wich on click should load the pano named vert with the xml file named vert.xml Code:
<spot id="phare_vert" url="icons/fleche.png" linked="petit/tour|grand/tour" alt="Vers le phare vert" onOver="alpha=1,200" onOut="alpha=0.5,200" onClick="loadPano(panoName=petit/vert&xml_file=vert.xml)" /> Code:
<spot id="tour" url="icons/fleche.png" linked="petit/vert|grand/vert" alt="Vers la tour" onOver="alpha=1,200" onOut="alpha=0.5,200" onClick="loadPano(panoName=petit/tour&xml_file=tour.xml)" /> I was wondering if it was because the first xml file was called by the html file : Code:
<script type="text/javascript">
var so = new SWFObject("files/pano.swf", "pano", "100%", "100%", "10", "#ffffff");
so.addVariable("xml_file","tour.xml");
so.addParam("allowFullScreen","true");
so.addParam("allowScriptAccess","sameDomain");
so.write("flashcontent");
window.document["pano"].focus();
</script>
Thanx for your help !!! |
|
#2
|
|||
|
|||
|
Hi,
try to use this code: Code:
onClick="loadPano(xml_file=(your xml name))" Code:
panoName=(your panorama name) Hope it helps, Myksa |
|
#3
|
|||
|
|||
|
Thanx for you reply, this should work but I can use panorama= in my xml file as I have a small preview and a fullsreen version, so I go this way : onstart: panorama;
... Thanx ! |
|
#4
|
||||
|
||||
|
Hello,
I think the problem here is that each XML path is to be relative to pano.swf. If I get it right, your folder structure is something like this: [domain]/files/ <-- contains pano.swf [domain]/vert/ <-- contains pano images [domain]/ <-- contains XML Therefore, I see two possibilities to solve this. Either put your XML in the same folder as the pano.swf, or make its call relative to it, like so: Code:
onClick="loadPano(panoName=petit/vert&xml_file=./vert.xml) Good luck, Ph. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|