Sie sind nicht angemeldet.

1

Dienstag, 12. Oktober 2010, 16:29

Open tour from a different folder

Hello,
I have a visit that works just fine when I include it this way:

Quellcode

1
2
3
4
5
6
<div class="tour">
			<object width="940" height="480">
				<embed src="Visit.swf" width="940" height="480" allowFullScreen="true">
				</embed>
			</object>
		</div>


But If I put the visit and all the files (xml/pictures...etc...) in a different folder to better organize my website, and then include it this way:

Quellcode

1
2
3
4
5
6
<div class="tour">
			<object width="940" height="480">
				<embed src="MySubFolder/Visite.swf" width="940" height="480" allowFullScreen="true">
				</embed>
			</object>
		</div>


It then doesn't work :(
It gives me a "loading error (IO ERROR)" ...
What can I do?

2

Dienstag, 12. Oktober 2010, 17:43

one if the word 'visit' has an E at the end and the other does not. maybe its jsut a typo.

3

Dienstag, 12. Oktober 2010, 23:35

Oh yeah, I saw it when I re read the message... but actually on my page it's both written with the "e". I took it off here to look english..
My problem doesn't come from here. Actually when I write the wrong text it doesn't even display the viewer. It's only when it's the right file address that it tells me that it is a "loading error"...

Do I have to always put all my files to my website's root?? root
Doesn't it get compfusing when you tend to have a lot of tour? I wish I could classify them in folders...

4

Mittwoch, 13. Oktober 2010, 13:29

Hi,

please tell more about your file structure and are you using embedded files?

best regards,
Klaus

5

Mittwoch, 13. Oktober 2010, 14:14

Okay, so this is how my website is organized:

[img]index.php?page=Attachment&attachmentID=343&h=2bfd57d8d45bf2c2cda5dd9a892dad609d9b81b6[/img]

But then on my page demo.htm where I want my tour to appear I include:

Quellcode

1
2
3
4
5
6
<div class="tour">
			<object width="940" height="480">
				<embed src="Appart_1/Visite.swf" width="940" height="480" allowFullScreen="true">
				</embed>
			</object>
		</div>


And I have the "loading error". It don't have it, only when I copy all the files from the folder "Appart_1" into the "website" folder, and that I call the tour from there with the include:

Quellcode

1
2
3
4
5
6
<div class="tour">
			<object width="940" height="480">
				<embed src="Visite.swf" width="940" height="480" allowFullScreen="true">
				</embed>
			</object>
		</div>



But don't want that, because then with all the files, it gets quickly compfusing. I would like to have one folder per tour with all the files in each of them.
like a folder "Appart_1", another "Appart_2" , "Appart_3" with all their xml, pictures files...etc... And then I could call them from my demo.htm page.

The same way I call my images for my design, which are in the folder "design"...

It should be possible no? Did I do something wrong?
»Ludo3« hat folgendes Bild angehängt:
  • Screen shot 2010-10-13 at 2.05.18 PM.png

6

Samstag, 16. Oktober 2010, 14:41

So, no one had this problem before?
What I did to trick it, is that I used KRProtect to generate a single swf file, that I can call from where I want, but for some reason it doesn't include the radar very well, so if someone has a solution for my original problem, that would still be welcome :)

7

Samstag, 16. Oktober 2010, 19:51

Why don't you use the javascript code to embed the swf player into the html page? That way, you'll have more control over which xml file to load.
If my guess is right, the Visite.swf is trying to load the xml file from the website/ folder instead of from website/Appart_1/ folder .

8

Freitag, 29. Oktober 2010, 23:07

Hello!
Because I don't know any javascript... how could I achieve what I want?
It is exactly what you suppose, because, when I copy all the xml files, and the data folder into the "webstie/" repertoire, it just work fine! So I guess it is the "swf" file which is calling them, and I can't modify this file to tell him to go look into the "website/Appart_1/" folder...

Arg, I don't know what to do...
Help? :)

9

Samstag, 30. Oktober 2010, 06:38

You can use this code

Quellcode

1
2
3
4
5
6
<div class="tour">
<object width="940" height="480">
<embed src="Visite.swf" width="940" height="480" allowFullScreen="true" flashvars="xml=Appart_1/visite.xml">
</embed>
</object>
</div>


For javascript, if you have downloaded the examples that come with the player, you can find the javascript code in almost every single html file.

10

Samstag, 30. Oktober 2010, 14:32

Hello,

I tried that code, but it's not working... *unsure*
And for the Javascript, yes I think it might be a great solution, but I don't know js at all, and when I look at the exemple in the package... They're not working correctly.... *huh*

I'm sure I'm not the only one organizing my tour into folders right?
How do you do?

11

Samstag, 30. Oktober 2010, 15:38

Well, it shouldn't be too difficult.
Upload the swfkrpano.js to your website folder. And add this in a html page demo1.html

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<html>
<head>
	<title>Visite</title>
</head>
<style>
body{ font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#FFFFFF; background-color:#000000; margin:0; padding:0; }
* html, * html body{ overflow: hidden; }
a{ color:#AAAAAA; text-decoration:underline; }
a:hover{ color:#FFFFFF; text-decoration:underline; }
</style>
<body>

<div id="krpanoDIV">
	<noscript><table width="100%" height="100%"><tr valign="middle"><td><center>ERROR:<br><br>Javascript not activated<br><br></center></td></tr></table></noscript>
</div>

<script type="text/javascript" src="swfkrpano.js"></script>

<script type="text/javascript">
// <![CDATA[

	var swf = createswf("Visite.swf", "krpanoSWFObject", "100%", "100%");
	swf.addVariable("xml", "Appart_1/Visite.xml");
	swf.embed("krpanoDIV");

// ]]>
</script>

</body>
</html>


This is based on the assumption that demo1.html, swfkrpano.js and Visite.swf are in your website/ folder andthe Visite.xml is in the website/Appart_1/ folder.

12

Montag, 1. November 2010, 17:59

Damn it.... no it's still not working, I have the same error again.. I feel bad for making you trying...
How do you organize your tour usually? Embedd them in one swf file? organize them into folders and then call them with javascript?
I feel like I'm missing something...grrr!

13

Dienstag, 2. November 2010, 04:43

Best thing would be to get hold of someone who is familiar with web development and make him do it for you.
If not, post a screen shot of current folder structure and also the contents of the html file that you are using.

14

Donnerstag, 4. November 2010, 15:25

Sorry, I was away...
Here is my structure:

[img]index.php?page=Attachment&attachmentID=343&h=2bfd57d8d45bf2c2cda5dd9a892dad609d9b81b6&[/img]

And here is the code of my html page:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<html>
	<head> 
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
		<title>Exemple de Visite - BubbleFlash 2010 </title> 
		<link rel="stylesheet" type="text/css" href= "default.css"> 
	</head> 

	<body>
		
		<div id="conteneur">
<div id="titre">		
		<h1><br/>Visite de l'appartement</h1>
</div>		
		<p>
		Bienvenue sur un exemple de visite. <br />
		<br />
		</p>
		<br/>
		<div id="tour">
			<object width="940" height="480">
				<embed src="Visite.swf" width="940" height="480" allowFullScreen="true" class="visite">
				</embed>
			</object>
		</div>
		
   
		
		
		</div>
	</body>
</html>


Can I ask you how you organize your files? like if you were me, would you keep everything in the "website" folder? then when you have few tours, doesn't it get compfusing??

15

Freitag, 5. November 2010, 07:10

What is the name of the html file that contains this content and in which folder is it placed?

16

Freitag, 5. November 2010, 11:04

It is "demo.htm" which is in the "website" folder...

17

Freitag, 5. November 2010, 12:10

Copy the swfkrpano.js that comes with the examples into the website folder and use this code for the demo.htm

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<html>
<head> 
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
	<title>Exemple de Visite - BubbleFlash 2010 </title> 
	<link rel="stylesheet" type="text/css" href= "default.css"> 
</head> 
<body>
	<div id="conteneur">
		<div id="titre">		
			<h1><br/>Visite de l'appartement</h1>
		</div>		
		<p>	Bienvenue sur un exemple de visite.	</p>
		<div id="tour">
			<noscript><table width="100%" height="100%"><tr valign="middle"><td><center>ERROR:<br><br>Javascript not activated<br><br></center></td></tr></table></noscript>
		</div>
	</div>
<script type="text/javascript" src="swfkrpano.js"></script>

<script type="text/javascript">
// <![CDATA[

	var swf = createswf("Appart_1/Visite.swf", "krpanoSWFObject", "100%", "100%");
	swf.addVariable("xml", "Appart_1/Visite.xml");
	swf.embed("tour");

// ]]>
</script>

</body>
</html>

18

Freitag, 19. November 2010, 13:07

Hello!
Sorry, I didn't receive the response in my email, that's weird...

I really thank you for trying to help srisa...
But I did exactly what you said, and I still have that error:
"loading error (IO ERROR)"

Did it work on your computer? Have you ever been able to open a tour from a different folder?

I wish klaus or someone could come around here.. I'm sure there is a pretty simple answer...

19

Mittwoch, 24. November 2010, 15:54

Hi,

can you please post a link to the example?
then it should be easier to say exactly where's the problem is...

best regards,
Klaus

20

Montag, 29. November 2010, 15:17

Hello, so yes, here is an example:

On my test2open.htm page, I'm trying to open the tour bourdel.swf in the bourdel folder..

And that's what I get:

www.bubbleflash.fr/test2open.htm
»Ludo3« hat folgendes Bild angehängt:
  • Screen shot 2010-11-29 at 3.15.29 PM.png

Ähnliche Themen