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
|
<action name="add_example_thumb" scope="local" args="title, ath, yoffset, thumburl, clickaction">
addhotspot(auto,bg);
addhotspot(auto,thumb);
addhotspot(auto,text);
set(bg, distorted=true, zorder=1, enabled=false, type=text, bgcolor=0x000000, bgalpha=0.5, bgroundedge=0, width=220, height=160, ath=get(ath), oy=calc((yoffset+20)*0.15*0.5), depth=150, scale=0.15);
set(thumb, distorted=true, zorder=2, capture=false, url=get(thumburl), width=200, height=120, ath=get(ath), oy=calc(yoffset*0.15*0.5), depth=149, scale=0.15, onover=tween(depth,147), onout=tween(depth,149), clickaction=get(clickaction), onclick='set(enabled,false); clickaction();');
set(text, distorted=true, zorder=3, enabled=false, type=text, html=get(title), css='text-align:center;color:#FFFFFF;font-size:15px;font-weight:bold;', oversampling=3, mipmapping=true, bgcolor=0xFFFFFF, bgalpha=0.004, width=200, height=20, ath=get(ath), oy=calc((yoffset+145)*0.15*0.5), depth=149, scale=0.15);
set(bg, ty=10000, autoalpha=true, alpha=0);
set(thumb, ty=10000, autoalpha=true, alpha=0);
set(text, ty=10000, autoalpha=true, alpha=0);
<!-- store the current local scope to have later access to its local variables -->
set(global.thumbs[get(global.thumbs.length)],get(local));
</action>
<action name="showthumbs" scope="local">
for(set(i,0), i LT global.thumbs.length, inc(i),
scope(get(global.thumbs[get(i)]),
callwith(bg, tween(ty|alpha, 0|1, 3.0, easeOutQuint|easeOutQuad); );
callwith(thumb, tween(ty|alpha, 0|1, 3.0, easeOutQuint|easeOutQuad); );
callwith(text, tween(ty|alpha, 0|1, 3.0, easeOutQuint|easeOutQuad); );
);
);
</action>
|