Sie sind nicht angemeldet.

1

Freitag, 30. Dezember 2011, 04:48

Textfield plugin - all I get is a thin line! Using krpantool v1.0.8.14. What am I doing wrong?

I am trying to create a text-box that loads with the panorama that closes when clicked, exactly like this example —

Quellcode

1
http://www.krpano.com/examples/sharpen/


Here is the code I am using —

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
<plugin name="info_text"
	        url="%SWFPATH%/plugins/textfield.swf"
	        html="data:info_html"
	        css="p{color:#FFFFFF; font-family:Arial; font-size:14; margin-left:5; margin-right:5; text-align:center; }"
	        keep="true"
	        children="false"
	        visible="false"
	        width="400"
	        height="500"
	        backgroundcolor="0x000000"
	        roundedge="15"
	        shadow="1"
	        borderwidth="0"
	        glow="4"
	        align="center"
	        x="0"
	        y="0"
	        autosize="center"
	        onloaded="action(show_info_text);"
	        onclick="action(hide_info_text);"
	        />
	        
	<action name="show_info_text">
		set(plugin[info_button].enabled,false);
		set(plugin[info_text].alpha,0);
		set(plugin[info_text].textblur,15);
		set(plugin[info_text].blur,15); 
		set(plugin[info_text].visible,true);
		set(plugin[info_text].enabled,true);
		tween(plugin[info_text].alpha,1,0.3); 
		tween(plugin[info_text].textblur,0,0.3); 
		tween(plugin[info_text].blur,0,0.3);
	</action>
	
	<action name="hide_info_text">
		set(plugin[info_text].enabled,false);
		set(plugin[info_button].enabled,true);
		tween(plugin[info_text].alpha,0,0.3,null,set(plugin[info_text].visible,false)); 
		tween(plugin[info_text].textblur,20,0.3); 
		tween(plugin[info_text].blur,20,0.3);
	</action>


All I get is a thin line (see screen capture attached)



What am I doing wrong? Please help.

2

Freitag, 30. Dezember 2011, 05:52

Just a quick guess here but try removing the autosize. I don't see it in the documentation under textfield.

3

Freitag, 30. Dezember 2011, 14:30

Hi Jarredja

Thanks for the tip, autosize was set to "center", once removed I see the text box, but there is no text!

What should I do to make text visible?

4

Freitag, 30. Dezember 2011, 15:31

Hi,

only thing i can see fast is "visible="false". Put it true and it's visible.

Regards,
Jesse Passoja
Passoja design
www.passojadesign.com

5

Freitag, 30. Dezember 2011, 18:02

Hi Nelike imagery

Tahnks for your post, but I figured it out ! *unsure* I'm novice at coding xml/AS. Left out the text part!

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
<data name="info_html">
		<p>
			<br/>
			At vero eos et accusamus et iusto odio dignissimos ducimus<br/>
			<br/>
			Lorem ipsum dolor sit amet, consectetur adipisicing elit
			Ut enim ad minima veniam, quis nostrum exercitationem
			<br/>
			<br/>
			<b>click to close</b>
			<br/>
		</p>
	</data>

6

Montag, 2. Januar 2012, 08:03

Hahaha awesome! And we didn't notice anything even tho we have more experience in the coding! We are not more pro in this than you are *smile*

Regards,
Jesse Passoja
Passoja design
www.passojadesign.com

7

Dienstag, 3. Januar 2012, 00:25

You are kind *smile*