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
|
<krpano version="1.0.8" >
<preview type="grid(cube,16,16,512,0xCCCCCC,0xFFFFFF,0x999999);" details="16" />
<view hlookat="12" vlookat="0" fov="105" />
<plugin name="textshow" style="button"
html="[p]show pic[/p]"
align="leftbottom" x="100" y="100"
onclick="action(showpic1);"
keep="true"
/>
<hotspot name="spot"
url="image1.jpg "
keep="true"
ath="45"
atv="54"
rx="-22.5" ry="-26.25" rz="-50.1"
zoom="true" distorted="true"
width="340" height="233"
edge="center" ox="" oy=""
visible="true" enabled="true"
zorder="1"
alpha="1" blendmode="normal" smoothing="true"
refreshrate="auto"
flying="0.0"
onclick="if(flying == 0.0, flyout() );
if(flying == 1.0, flyback() );"
backup_rx="0"
backup_ry="0"
backup_rz="0"
/>
<plugin name="pic1"
width="340" height="233"
url="image1.jpg"
align="center"
visible="false"
onclick="set(plugin[pic1].visible,false)"
/>
<action name="showpic1">
set(plugin[pic1].visible,true);
div(x1,stagewidth,3);
div(y1,stageheight,3);
tween(plugin[pic1].x,0);
tween(plugin[pic1].y,0);
tween(plugin[pic1].width,get(x1));
tween(plugin[pic1].height,get(y1));
trace(x1);
trace(y1);
</action>
<action name="flyout">
tween(rx, 0);
tween(ry, 0);
tween(rz, 0);
div(x1,stagewidth,3);
div(y1,stageheight,3);
tween(hotspot[spot].ath,0);
tween(hotspot[spot].atv,0);
tween(hotspot[spot].width,get(x1));
tween(hotspot[spot].height,get(y1));
trace(x1);
trace(y1);
tween(flying, 1.0);
</action>
<style name="button"
keep="true"
url="./textfield.swf"
css="p{color:#FFFFFF; font-family:Arial; font-size:14; margin-left:5; margin-right:5; text-align:center; }"
children="false"
visible="true"
width="100"
height="22"
backgroundcolor="0x000000"
roundedge="5"
shadow="1"
borderwidth="0"
glow="4"
/>
</krpano>
|