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
|
<!-- radar plugin, set heading with "plugin[radar].heading" -->
<plugin name="radar"
url="plugins/radar.swf"
zorder="1"
keep="true"
heading="0"
parent="map"
mask="mapmask"
align="lefttop"
edge="center"
x="0" y="0"
linecolor="0"
fillcolor="0xFF0000"
scale="2.5"
visible="false"
/>
<!-- mask for radar -->
<plugin name="mapmask" url="images/GrundrissPraxisKaiser.png" keep="true"
parent="map"
enabled="false"
/>
<!-- actions -->
<action name="closemap">
set(onclick,action(openmap););
tween(width,64,distance(300,0.5),easeoutquad);
tween(height,45,distance(302,0.5),easeoutquad);
</action>
<action name="openmap">
set(onclick,action(closemap););
tween(width,300,distance(300,0.5),easeoutquad);
tween(height,302,distance(302,0.5),easeoutquad);
</action>
<!-- activatespot action,
- this action has two arguments:
- %1 = the current spot
- %2 = the current radar heading
-->
<action name="activatespot">
set(plugin[activespot].parent, plugin[%1]);
set(plugin[activespot].visible, true);
copy(plugin[radar].x, plugin[%1].x);
copy(plugin[radar].y, plugin[%1].y);
trace(plugin[radar].x,'-',plugin[radar].y);
set(plugin[radar].visible, true);
set(plugin[radar].heading, %2);
</action>
|