Sie sind nicht angemeldet.

lolokolo

Anfänger

  • »lolokolo« ist der Autor dieses Themas

Beiträge: 12

Wohnort: Bangkok, Thailand

Beruf: Virtual Tour service

  • Nachricht senden

1

Montag, 10. Januar 2011, 17:35

Anyone please help me about Textfield.

Hello i'm kind of stupid in programming. i've got a work involved with textfield things.
Here is an example http://www.360imagery.co.uk/VT/paignton_zoo/ (i saw this sample discuss about the image plugins in another post.)
what i want is just info hotspot that when clicked a textfield description appear and move along with its spot.
i've try to do somethings like this several times but useless, the field remain at the center of the screen

So anyone please help me get through this problem with some easy format of code i'd be appreciate ^^ Thank in advance *smile*
www.charcoal.co.th/360

[/url]%20%20Uploaded%20with%20ImageShack.us[/img]

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

2

Montag, 10. Januar 2011, 18:42

Hi,

i think when you add the ath and the atv to the code and give it no x and y it will work.


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
<data name="html_infotext"> 
		<p align="middle"><font face="Verdana"   size="11"><textformat leftmargin="" rightmargin="">
		<img src="infotextfield.png" height="" width="" align="lefttop"/>
	            </textformat></font></p>     

	</data>

	
	
<plugin name="infotext"
 	        url="textfield.swf"
	        keep="true"
 	        visible="false" enabled="true" handcursor="true" capture="true" children="true"
 	        zorder="100"
 	        alpha="1.00" blendmode="normal"
 	        smoothing="true"
 	        origin="lefttop" edge=""
 	       
          ath="0"  atv="0"
 	  
                width="" height="360"
	        scale="1"
	        onloaded=""
	        onover=""
	        onhover="showtext(Klik om de gebruiksaanwijzing te sluiten)"
	        onout=""
	        ondown=""
	        onup=""
	        onclick="action(hidetextfield, infotext);tween(plugin[mask_l].alpha,0,0.5);set(plugin[mask_l].enabled,false);wait(2);action(areathumbs);"
	        autosize="none"
	        background="false"
	        backgroundcolor=""
	        blur="0"
	        bordercolor="0"
	        borderwidth="1"
	        css="data:defaultcss"
	        glow="0"
	        glowcolor="16777215"
	        html="data:html_infotext"
	        roundedge="8"
	        selectable="true"
	        shadow="3"
	        textblur="0"
	        textglow="0"
	        textglowcolor="16777215"
	        textshadow="0" 
	        />



hope that helps

Tuur *thumbsup*

Zephyr

Profi

Beiträge: 1 003

Wohnort: Netherlands

Beruf: Web developer

  • Nachricht senden

3

Montag, 10. Januar 2011, 21:16

you want to add the textfield plugin, as a hotspot. <hotspot url="textfield.swf" etc />

A hotspot stays fixed in the panorama, while a hotspot stays fixed on the screen. You could alsoo distort the textfield as a plugin (distort="true", then it will stay too. Hope that helps

4

Montag, 10. Januar 2011, 21:58

he meant to say

"A hotspot stays fixed in the panorama, while a PLUGIN stays fixed on the screen. You could also distort the textfield as a plugin (distort="true"), then it will stay too. Hope that helps"

a distorted textfield would be very hard to read. i would use it as a hotpost. using this code the textfield hotspot will follow the mouse.

<plugin name="infotext"
url="textfield.swf"
keep="true"
visible="false" enabled="true" handcursor="true" capture="true" children="true"
zorder="100"
alpha="1.00" blendmode="normal"
smoothing="true"
origin="lefttop" edge=""

ath="0" atv="0"

width="" height="360"
scale="1"
onloaded=""
onover=""
onhover="showtext(Klik om de gebruiksaanwijzing te sluiten)"
onout=""
ondown="set(dragging,true); follow_the_mouse(get(name));"
onup="set(dragging,false);"

onclick="action(hidetextfield, infotext);tween(plugin[mask_l].alpha,0,0.5);set(plugin[mask_l].enabled,false);wait(2);action(areathumbs);"
autosize="none"
background="false"
backgroundcolor=""
blur="0"
bordercolor="0"
borderwidth="1"
css="data:defaultcss"
glow="0"
glowcolor="16777215"
html="data:html_infotext"
roundedge="8"
selectable="true"
shadow="3"
textblur="0"
textglow="0"
textglowcolor="16777215"
textshadow="0"
/>

<action name="follow_the_mouse">
if(dragging,
add(hotspot[%1].x, mouse.x, 0);
add(hotspot[%1].y, mouse.y, 0);
delayedcall(0, follow_the_mouse(%1));
);
</action>

lolokolo

Anfänger

  • »lolokolo« ist der Autor dieses Themas

Beiträge: 12

Wohnort: Bangkok, Thailand

Beruf: Virtual Tour service

  • Nachricht senden

5

Dienstag, 11. Januar 2011, 20:14

Thank you everyone ;-) i'll try which's work best *thumbsup*
www.charcoal.co.th/360

[/url]%20%20Uploaded%20with%20ImageShack.us[/img]

Ähnliche Themen