Hello,
Thank you for your clues, my problems have been solved !
Nevertheless, I have got an other one :
In the virtual tour, there are many files xml, and I have "combined some", thanks to the Krprotect software, so I have a new file krpano.swf.
In the interface of the software, the boxes "external parameter" and "Js interface" are not ticked.
If I use the code below in the page html with the file original krpano.swf (that is to say the one given by Mr Klaus), the line
so.addVariable("xml", "file.xml"); holding the file xml that I want to read first is called properly.
Now, if I replace the file krpano.swf by the one created by the tool krprotect, the line
so.addVariable("xml", "fichier.xml");Is not read at all. Even if I changed the content of the file fil.xml, no mistake appears on the screen, which is the proof that is not even read !
|
Quellcode
|
1
2
3
4
5
6
7
|
if (deconcept.SWFObjectUtil.getPlayerVersion().major >= 9)
{
var so = new SWFObject("../../krpano.swf","krpanoSWFObject","100%","100%","9.0.28","#000000");
so.addParam("allowFullScreen","true");
so.addVariable("xml", "file.xml");
if (so.write("krpanoDIV")) { var mousewheelfixes = new SWFkrpanoMouseWheel(so); }
}
|
I have tried in replacing "xml" by "pano" or "xml_file", but I find no information showing what to put ...
I am a bit lost, and my conclusion (for the time being) is that when we modify the file krpano.swf, the following lines "so.addVariable" are not read...
The line
so.addParam("allowFullScreen","true"); , is read all the time, whether it is with the original file krpano.swf, or the one I have created, and it works !
Help !
Thanks
Matthieu
--------------------------------------------------------
Bonjour,
Merci pour vos indices, je n'ai plus de problème concernant mes questions !
Cependant, un autre soucis :
Dans la visite créée, il y a plusieurs fichiers xml, et j'en ai "combinés certains" grâce au logiciel krprotect, j'obtiens donc un nouveau fichier krpano.swf. Dans l'interface du logiciel, les cases "external parameter" et "Js interface" sont décochées.
Si j'utilise le code ci-dessous dans la page html avec le fichier krpano.swf original (c'est à dire celui fournit par Mr Klaus), la ligne
so.addVariable("xml", "fichier.xml"); contenant le fichier xml que je veux lire en premier est appelée correctement.
Maintenant, si je remplace le fichier krpano.swf par celui que l'outil krprotect m'a créé, la ligne
so.addVariable("xml", "fichier.xml"); n'est plus du tout lue. J'ai beau modifier le contenu du fichier : fichier.xml, aucune erreur n'apparait à l'écran, preuve qu'il n'est même pas parcouru !
|
Quellcode
|
1
2
3
4
5
6
7
|
if (deconcept.SWFObjectUtil.getPlayerVersion().major >= 9)
{
var so = new SWFObject("../../krpano.swf","krpanoSWFObject","100%","100%","9.0.28","#000000");
so.addParam("allowFullScreen","true");
so.addVariable("xml", "fichier.xml");
if (so.write("krpanoDIV")) { var mousewheelfixes = new SWFkrpanoMouseWheel(so); }
}
|
J'ai essayé en mettant "pano" à la place de "xml", ou encore "xml_file", mais je ne trouve aucune documentation indiquant quoi mettre ...
Je suis donc un peu perdu, et j'en conclue (pour l'instant) que lorsqu'on modifie le fichier krpano.swf, les lignes suivantes "so.addVariable" ne sont pas interprétées ...
La ligne
so.addParam("allowFullScreen","true");, elle, est tout le temps lue, que ça soit avec le fichier krpano.swf original ou celui que j'ai créé, et elle fonctionne !
A l'aide !
Merci
Matthieu