You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

panoyun

Beginner

  • "panoyun" started this thread

Posts: 31

Location: Somalia

  • Send private message

1

Sunday, May 3rd 2020, 12:11pm

onup.touch for help

Source code

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
<action name="hbacuoanivja" autorun="onstart">	
	addlayer(calc('addlayer' + 'wgyasybcclva'));
	set(layer[calc('addlayer' + 'wgyasybcclva')],
		type=container,
		keep=true,
		visible=true,
		bgalpha=1.0,
		bgcolor=0x000000,
		width=100,
		height=100,
		y=0,
		align=top,
		handcursor=true,
		bgcapture=true,
		tooltip=Shavadika,
	);
	layer[calc('addlayer' + 'wgyasybcclva')].loadstyle('layer_tooltip');
	</action>
	<style name="layer_tooltip"
	       onover="copy(layer[tooltip].html, tooltip);
	               set(layer[tooltip].visible, true);
	               tween(layer[tooltip].alpha, 1.0, 0.5);
	               asyncloop(hovering, copy(layer[tooltip].x,mouse.stagex); copy(layer[tooltip].y,mouse.stagey); );"
	       onout="tween(layer[tooltip].alpha, 0.0, 0.25, default, set(layer[tooltip].visible,false);copy(layer[tooltip].x,mouse.stagex); copy(layer[tooltip].y,mouse.stagey); );"
			ondown.touch="
			asyncloop(pressed,
				copy(layer[tooltip].html, tooltip);
				set(layer[tooltip].visible, true);
				tween(layer[tooltip].alpha, 1.0, 0.5);
				copy(layer[tooltip].x,mouse.stagex); 
				copy(layer[tooltip].y,mouse.stagey);
			);"
			onup.touch="
				tween(layer[tooltip].alpha, 0.0, 0.25, default, 
					set(layer[tooltip].visible,false); 
					copy(layer[tooltip].x,mouse.stagex); 
					copy(layer[tooltip].y,mouse.stagey);
				);"/>

	<layer name="tooltip" keep="true"
	       type="text"
	       parent="STAGE"
	       visible="false" alpha="0"
	       enabled="false"
	       align="lefttop"
	       edge="bottom"
	       oy="-2"
	       background="false" backgroundcolor="0xFFFFFF" backgroundalpha="1.0"
	       border="false" bordercolor="0x000000" borderalpha="1.0"
	       borderwidth="1.0" roundedge="0"
	       shadow="0.0" shadowrange="4.0" shadowangle="45" shadowcolor="0x000000" shadowalpha="1.0"
	       textshadow="1" textshadowrange="6.0" textshadowangle="90" textshadowcolor="0x000000" textshadowalpha="1.0"
	       css="text-align:center; color:#FFFFFF; font-family:Arial; font-weight:bold; font-size:14px;"
	       html=""/>

onup.touch
If you use it, you ca n’t use it
ondown.touch
*sad* *sad* *sad*