Sie sind nicht angemeldet.

1

Montag, 16. Juli 2012, 05:00

TextField not being displayed

I'm having trouble displaying a textField plugin, Here is my 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
<?xml version="1.0" encoding="UTF-8"?>
<krpano onstart="startup();">
  <plugin name="newhotspot1P" 
			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" 
			textcolor="0x000000" 
			bordercolor="0xFFFFFF" 
			backgroundcolor="0xFFFFFF" 
			selectable="false" 
			shadow="5" 
			autosize="center"/>
  <action name="startup">loadscene(get(scene[0].name),null,MERGE);</action>
  <action name="show_hotspot_html_field">
		set(plugin[newhotspot1P].y,-1500);
		tween(plugin[newhotspot1P].alpha,1,0);
		tween(plugin[newhotspot1P].textblur,0,0);
		tween(plugin[newhotspot1P].blur,0,0);
		set(plugin[newhotspot1P].visible,true);
		showtext(get(plugin[newhotspot1P].visible),infostyle);
		set(plugin[newhotspot1P].enabled,true);
		tween(plugin[newhotspot1P].y,0);
  </action>
  <textStyle name="infostyle" origin="top" edge="top" yoffset="20" textalign="center" background="false" border="false" fontsize="40" textColor="0xFFFFFF" bold="false" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);" showtime="4.0" fadetime="1.0" fadeintime="1.0"/>
  <data name="html1" devices="desktop|tablet"><p align="center"><font face="times" size="16px" style="font-family:times; font-size:16px;"><b>Hello from Textfield HTML</b></font></p><a href="event:action(loadpano);"></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/><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="16px" style="font-size:16px;"><a href="event:action(hidewindow,htmltext);action(showbutton);">close window</a><br/></font></p></data><data name="html1" devices="mobile"><p align="center"><font face="times" size="16px" style="font-family:times; font-size:16px;"><b>Hello from Textfield HTML</b></font></p><a href="event:action(loadpano);"><img src="image.jpg" style="float:left; padding:8px;" width="160px" height="106px"/></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/><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="16px" style="font-size:16px;"><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="css1">
		a   	{ text-decoration:underline;  color:#110088;  font-weight:bold; }
		a:hover { color:#885500; }
	</data>
  <style name="hotspot_arrow_1" url="%SWFPATH%/hotspot/go_top_icon.png"/>
  <style name="hotspot_info_1" url="%SWFPATH%/hotspot/hotspotInfoImage.png"/>
  <style name="hotspot_info_2" url="%SWFPATH%/hotspot/infoHotspot.png"/>
  
<scene name="Biblioteca" title="Biblioteca"><view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fovmin="40"/><preview url="http://localhost/drupal6/sites/default/files/panoramas/MitadMundo100/MitadMundo100.tiles/preview.jpg"/><image type="CUBE" multires="true" tilesize="671" progressive="false">
		<level tiledimagewidth="2013" tiledimageheight="2013">
			<cube url="http://localhost/drupal6/sites/default/files/panoramas/MitadMundo100/MitadMundo100.tiles/%s_%0v_%0h.jpg"/>
		</level>
	</image>
	<hotspot name="Patio Central" 
			 style="hotspot_arrow_1" 
			 atv="0.0" 
			 ath="237.40327424703" 
			 zoom="false" 
			 onclick="looktohotspot(get(name)); loadscene('Patio Central',null,MERGE,BLEND(1));"/>
	
	<hotspot name="newhotspot1" 
			 style="hotspot_info_2" 
			 atv="-9.661224858825133" 
			 ath="75.46221185677985" 
			 zoom="false"
			 onclick="show_hotspot_html_field(get(name))"/>
	<hotspot name="newhotspot2" 
			 style="hotspot_info_2" 
			 atv="-4.69816161916203" 
			 ath="-11.774628504220686" 
			 zoom="false"/>
</scene><scene name="Patio Central" title="Patio Central"><view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fovmin="40"/>
	<preview url="http://localhost/drupal6/sites/default/files/panoramas/NeckarBridge/NeckarBridge.tiles/preview.jpg"/>
	<image type="CUBE" multires="true" tilesize="796" progressive="false">
		<level tiledimagewidth="1592" tiledimageheight="1592">
			<cube url="http://localhost/drupal6/sites/default/files/panoramas/NeckarBridge/NeckarBridge.tiles/%s_%0v_%0h.jpg"/>
		</level>
	</image><hotspot name="Biblioteca" style="hotspot_arrow_1" atv="0.0" ath="57.403274247033" zoom="false" onclick="looktohotspot(get(name)); loadscene('Biblioteca',null,MERGE,BLEND(1));"/>
	
	</scene>
	
	</krpano>


When I click the newhotspot1 Hotspot, nothing is shown on screen, just the result of the showtext action that was inside the show_hotspot_html_field action. What I'm doing wrong??

EDIT: Nevermind, the problem was keep = true, since the loadScene was the first action on the xml, the plugin was getting removed from it.