Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Freitag, 17. April 2009, 23:18

How view plugins or textfield on a tour in others xml if not to overload the index.

on a tour I can not put into a secondary XML plugin as a button, because it is not if not in main index, as could be put so as not to overload the index with information from many texts? because the charges all at the beginning.

I do not know if I explained, I want to make an informative tour of a church chapel explaining each, and the index is very large.

2

Samstag, 18. April 2009, 02:36

RE: How view plugins or textfield on a tour in others xml if not to overload the index.

on a tour I can not put into a secondary XML plugin as a button, because it is not if not in main index, as could be put so as not to overload the index with information from many texts? because the charges all at the beginning.

I do not know if I explained, I want to make an informative tour of a church chapel explaining each, and the index is very large.


Huh?! i could not decipher what the question was I am sorry.

Graydon

Profi

Beiträge: 614

Wohnort: Texas

Beruf: Industrial gas turbine services.

  • Nachricht senden

3

Samstag, 18. April 2009, 04:32

If you want to keep your main xml file small / manageable you can use "include url"...

http://www.krpano.com/docu/xml/#include

Here's a sample of where I've done that before...

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<krpano version="1.0.8">

	<display
		details="20"
		movequality="LOW"
		stillquality="HIGHSHARP" 
	/>

	<include url="textstyle.xml" />
	<include url="context_menu.xml" />
	<include url="mapinterface.xml" />
	<include url="map.xml" />
	<include url="menu_bar.xml" />
	<include url="logo_tour.xml" />
	<include url="logo_marlin_creek.xml" />
	<include url="info.xml" />

</krpano>


... in this example I didn't load a pano image... just filled the screen with a map and textbox.

The included xml's are parsed as if they were part of the main xml file.

4

Donnerstag, 23. April 2009, 19:48

hello
i create file text.xml with code ( krpano-1.0.7\examples\textfield\textfield.xml ) :

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<plugin name="button" url="%SWFPATH%/plugins/textfield.swf" 
         align="center" width="200" height="30" x="0" y="150" children="false"
         html="data:buttontext"
         background="false"
         textglow="4"
         textglowcolor="0xFFFFFF"
         textshadow="3"
         autosize="center"
         onclick="action(show_html_field);"
         />
         
 <action name="show_html_field">
 	set(plugin[button].enabled,false);
 	set(plugin[htmltext].y,-1500);
 	tween(plugin[button].alpha,0,,,set(plugin[button].visible,false));
 	tween(plugin[htmltext].alpha,1,0);
 	tween(plugin[htmltext].textblur,0,0);
 	tween(plugin[htmltext].blur,0,0);
 	set(plugin[htmltext].visible,true);
 	set(plugin[htmltext].enabled,true);
 	tween(plugin[htmltext].y,0);
 </action>
 
 
 <action name="showbutton">
 	set(plugin[button].visible,true);
 	set(plugin[button].enabled,true);
 	tween(plugin[button].alpha,1);
 </action>	 

 <plugin name="htmltext" url="%SWFPATH%/plugins/textfield.swf" 
         align="center" width="500" height="300" x="0" y="-1100" visible="false"
         html="data:html1"
         css="data:css1"
         roundedge="0"
         borderwidth="1"
         bordercolor="0xFFFFFF"
         backgroundcolor="0xFFFFFF"
         selectable="false"
         shadow="5"
         autosize="center"
         />

 <plugin name="htmltext2" url="%SWFPATH%/plugins/textfield.swf" 
         align="righttop" width="250" height="100" x="20" y="20"
         html="data:html2"
         css="data:css2"
         borderwidth="0"
         bordercolor="0xFF0000"
         backgroundcolor="0xFFFFFF"
         alpha="0.0"
         blur="8"
         textblur="8"
         glow="6"
         glowcolor="0xFFFFFF"
         shadow="5"
         autosize="center"
         visible="false"
         />	        
 
 <action name="move">
 	plugin[%1].changeorigin(lefttop,lefttop);
 	tween(plugin[%1].x,0,1,easeoutquad);
 	tween(plugin[%1].y,0,1,easeoutquad,action(move2,%1));
 </action>
 
 <action name="move2">
 	plugin[%1].changeorigin(rightbottom,rightbottom);
 	tween(plugin[%1].x,0,1,easeoutquad);
 	tween(plugin[%1].y,0,1,easeoutquad,action(moveback,%1));
 </action>
 
 <action name="moveback">
 	plugin[%1].changeorigin(center,center);
 	tween(plugin[%1].x,0,1,easeoutquad);
 	tween(plugin[%1].y,0,1,easeoutquad);
 </action>
 
 <action name="hidewindow">
 	set(plugin[%1].enabled,false);
 	tween(plugin[%1].alpha,0);
 	tween(plugin[%1].blur,20);
 	tween(plugin[%1].textblur,20,,,set(plugin[%1].visible,false));
 </action>
 
 <action name="hidewindow2">
 	set(enabled,false);
 	tween(alpha,0);
 	tween(blur,20);
 	tween(textblur,20,,,set(visible,false));
 </action>
 
 <action name="show_html_field2">
 	set(plugin[htmltext2].enabled,true);
 	tween(plugin[htmltext2].blur,8,0);
 	tween(plugin[htmltext2].textblur,8,0);
 	set(plugin[htmltext2].blur,8);
 	set(plugin[htmltext2].textblur,8);
 	set(plugin[htmltext2].visible,true);
 	tween(plugin[htmltext2].blur,0);
 	tween(plugin[htmltext2].textblur,0);
 	tween(plugin[htmltext2].alpha,0.8);
 </action> 
 
 <action name="loadpano">
 	action(hidewindow,htmltext);
 	action(showbutton);
 	loadpano(%SWFPATH%/examples/sphere/sphere_example.xml,null,KEEPBASE,BLEND(1));
 </action>
 
 <data name="html1">
 	<p align="center">
 		<font face="times" size="+4">
 			<b>Hello from Actionscript HTML</b>
 		</font>
 	</p>
  
 	<a href="event:action(loadpano);">
 		<img src="image.jpg" />
 	</a>
  
 	styles test:<br/>
 	<b>bold</b><br/>
 	<i>italic</i><br/>
 	<u>underlined</u><br/>
 	<br/>
  
 	links test:<br/>
 	<a href="http://www.krpano.com">open krpano site</a><br/>
 	<a href="event:lookto(0,0,130);lookto(90,0,150);">do some lookto actions</a><br/>
 	<a href="event:action(move,htmltext);">click to move field</a><br/>
 	<a href="event:action(show_html_field2);">open second field</a><br/>
 	<br/>
  
 	color test:<br/>
 	<font color="#FF0000">red </font><font color="#00FF00">green </font><font color="#0000FF">blue</font><br/>
 	<br/>
 	<br/>
 	<br/>
  
 	list test:<br/>
 	<li>
 		<ul>list1</ul><br/>
 		<ul>list2</ul><br/>
 		<ul>list3</ul><br/>
 	</li>
  
 	<p align="left">
 		left align test left align test left align test left align test left align test<br/>
 		left align testleft align testleft align test<br/>
 	</p>
  
 	<p align="center">
 		center align test center align test center align test center align test center align test<br/>
 		center align test center align test center align test<br/>
 	</p>
  
 	<p align="right">
 		right align test right align test right align test right align test right align test<br/>
 		right align test right align test right align test<br/>
 	</p>
  
 	<p align="center">
 		<font size="+4">
 			<a href="event:action(hidewindow,htmltext);action(showbutton);">close window</a><br/>
 		</font>
 	</p>
 </data>	        
 
 <data name="css1">
 	a       { text-decoration:underline;  color:#110088;  font-weight:bold; }
 	a:hover { color:#885500; }
 </data>
 
 <data name="css2">
 	<include url="externdata.css" />
 </data>
 
 <data name="html2">
 	<include url="externdata.html" />
 </data>

then i paste <include url="text.xml" /> in this file tour.xml ( this is the first file ...so.addVariable("pano", "tour.xml"); ... )
and it is working
but if i paste <include url="text.xml" /> in other file (1.xml) , not first file ( ..so.addVariable("pano", "tour.xml"); ..) it does not work

5

Dienstag, 28. April 2009, 22:09

then i paste <include url="text.xml" /> in this file tour.xml ( this is the first file ...so.addVariable("pano", "tour.xml"); ... )
and it is working
but if i paste <include url="text.xml" /> in other file (1.xml) , not first file ( ..so.addVariable("pano", "tour.xml"); ..) it does not work
Hi,

this depends how you load the other xml files,
e.g. when the KEEPALL or KEEPLUGINS flags is set on the loadpano() call,
the <plugin> tags from the new xml are not loaded,

have a look here:
http://krpano.com/docu/actions/#loadpano

best regards,
Klaus

6

Mittwoch, 29. April 2009, 14:27

thanks. the problem was in KEEPALL

Ähnliche Themen