![]() |
|
|
|
|
|
||||||||||
|
| User list | You are not logged in.
I understand how relative paths work and have studied the KRPano forum but I'm stuck on a problem I hope someone can help with?
I can't see how to put the APT generated HTML <embed></embed> code in a page that is not in the same DIR as the SWF. For example:
"www.mydomain.com/1/2/tour.html"
"www.mydomain.com/3/4/tour.swf"
I changed the APT generated <embed src="tour.swf" width="640" height="480"></embed> to <embed src="../../tour.swf" width="640" height="480"></embed>
With the XML files also exported I checked the activity window and I see:
"www.mydomain.com/1/2/tour.html" FOUND
"www.mydomain.com/1/2/tour.xml" NOT FOUND
"www.mydomain.com/3/4/tour.swf" FOUND
I then see a "tour.XML loading error (IO error)" message
I can see the <embed> command is calling the tour.xml BEFORE it moves to the correct (.swf + .xml) directory. My guess is the default directory for the first XML file is set within swfkrpano.js and therefore included within the exported SWF?
If so, is it possible to modify the inbuilt APT swfkrpano.js so it uses %SWFPATH% as a variable to set the correct relative path to the first XML? Or am I completely off the plot? I read on the KRPano documentation there is a default path for the XML directory location which is what I think I need to change?
Last edited by badders (2010-08-26 00:40:21)
Offline
Is it impossible for you to have the all the files for a tour in the same directory?
Offline
mediavets wrote:
Is it impossible for you to have the all the files for a tour in the same directory?
Not for me, but it is for the client....![]()
Offline
Hello,
you should try the simple javascript HTML template AND restrict view to a domain (Licence domains). Then uncomment and edit the
swf.addVariable("xml", "pano1.xml");, replacing pano1.xml by "../../pano1.xml" or whatever.
Offline
Yes! that has worked! Thanks.
Offline
Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
|
CHOOSING KOLOR Why choose Kolor? Which solution to choose? Download a trial Where can I buy? Education |
SOFTWARE Autopano Pro Autopano Giga Panotour Panotour Pro XnView |
ACCESSORIES Training DVD Panobook PROJECTS Paris 26 Gigapixels Yosemite 17 Gigapixels |
COMMUNITY Forums Blog |
COMPANY About Kolor Corporate blog Resellers Contact |
PRESS Press center Press review TOOLS My account |
