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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
<!-- test for mouse events -->
<smil>
<head>
<layout>
<root-layout width="320" height="240" background-color="orange"/>
<region id="reg1" left="5%" top="10%" right="60%" bottom="50%"
background-color="blue">
<region id="reg1_1" left="10%" top="30%" right="10%" bottom="30%"/>
</region>
<region id="reg2" left="60%" top="10%" right="5%" bottom="50%"
background-color="blue">
<region id="reg2_1" left="5%" top="30%" right="10%" bottom="30%"/>
</region>
<region id="reg1_txt" left="5%" top="55%" width="15%" bottom="35%"/>
<region id="reg1_click" left="5%" top="65%" width="15%" bottom="25%"
background-color="red"/>
<region id="reg1_enter" left="5%" top="75%" width="15%" bottom="15%"
background-color="red"/>
<region id="reg1_leave" left="5%" top="85%" width="15%" bottom="5%"
background-color="red"/>
<region id="reg1_1_txt" left="25%" top="55%" width="15%" bottom="35%"/>
<region id="reg1_1_click" left="25%" top="65%" width="15%" bottom="25%"
background-color="red"/>
<region id="reg1_1_enter" left="25%" top="75%" width="15%" bottom="15%"
background-color="red"/>
<region id="reg1_1_leave" left="25%" top="85%" width="15%" bottom="5%"
background-color="red"/>
<region id="reg2_txt" left="60%" top="55%" width="15%" bottom="35%"/>
<region id="reg2_click" left="60%" top="65%" width="15%" bottom="25%"
background-color="red"/>
<region id="reg2_enter" left="60%" top="75%" width="15%" bottom="15%"
background-color="red"/>
<region id="reg2_leave" left="60%" top="85%" width="15%" bottom="5%"
background-color="red"/>
<region id="reg2_1_txt" left="80%" top="55%" width="15%" bottom="35%"/>
<region id="reg2_1_click" left="80%" top="65%" width="15%" bottom="25%"
background-color="red"/>
<region id="reg2_1_enter" left="80%" top="75%" width="15%" bottom="15%"
background-color="red"/>
<region id="reg2_1_leave" left="80%" top="85%" width="15%" bottom="5%"
background-color="red"/>
</layout>
</head>
<body>
<par dur="50">
<text id="text1" src="data:,Opaque%20child" region="reg1_1" fill="freeze">
<param name="backgroundColor" value="yellow"/>
</text>
<text id="text2" src="data:,Transparent%20child" region="reg2_1"
fill="freeze" sensitivity="transparent">
<param name="backgroundColor" value="yellow"/>
</text>
<text src="data:,Outer" region="reg1_txt" fill="freeze"
rn:backgroundOpacity="0%"/>
<text id="text1_click" src="data:,Clicked" region="reg1_click"
fill="freeze" rn:backgroundOpacity="0%"/>
<text id="text1_enter" src="data:,Entered" region="reg1_enter"
fill="freeze" rn:backgroundOpacity="0%"/>
<text id="text1_leave" src="data:,Leaved" region="reg1_leave"
fill="freeze" rn:backgroundOpacity="0%"/>
<text src="data:,Inner" region="reg1_1_txt" fill="freeze"
rn:backgroundOpacity="0%"/>
<text id="text1_1_click" src="data:,Clicked" region="reg1_1_click"
fill="freeze" rn:backgroundOpacity="0%"/>
<text id="text1_1_enter" src="data:,Entered" region="reg1_1_enter"
fill="freeze" rn:backgroundOpacity="0%"/>
<text id="text1_1_leave" src="data:,Leaved" region="reg1_1_leave"
fill="freeze" rn:backgroundOpacity="0%"/>
<text src="data:,Outer" region="reg2_txt" fill="freeze"
rn:backgroundOpacity="0%"/>
<text id="text2_click" src="data:,Clicked" region="reg2_click"
fill="freeze" rn:backgroundOpacity="0%"/>
<text id="text2_enter" src="data:,Entered" region="reg2_enter"
fill="freeze" rn:backgroundOpacity="0%"/>
<text id="text2_leave" src="data:,Leaved" region="reg2_leave"
fill="freeze" rn:backgroundOpacity="0%"/>
<text src="data:,Inner" region="reg2_1_txt" fill="freeze"
rn:backgroundOpacity="0%"/>
<text id="text2_1_click" src="data:,Clicked" region="reg2_1_click"
fill="freeze" rn:backgroundOpacity="0%"/>
<text id="text2_1_enter" src="data:,Entered" region="reg2_1_enter"
fill="freeze" rn:backgroundOpacity="0%"/>
<text id="text2_1_leave" src="data:,Leaved" region="reg2_1_leave"
fill="freeze" rn:backgroundOpacity="0%"/>
<set target="reg1_click" attribute="background-color" to="green"
begin="reg1.activateEvent" dur="1"/>
<set target="reg1_enter" attribute="background-color" to="green"
begin="reg1.inBoundsEvent" end="reg1.outOfBoundsEvent"/>
<set target="reg1_leave" attribute="background-color" to="green"
end="reg1.inBoundsEvent" begin="reg1.outOfBoundsEvent"/>
<set target="reg1_1_click" attribute="background-color" to="green"
begin="reg1_1.activateEvent" dur="1"/>
<set target="reg1_1_enter" attribute="background-color" to="green"
begin="reg1_1.inBoundsEvent" end="reg1_1.outOfBoundsEvent"/>
<set target="reg1_1_leave" attribute="background-color" to="green"
end="reg1_1.inBoundsEvent" begin="reg1_1.outOfBoundsEvent"/>
<set target="reg2_click" attribute="background-color" to="green"
begin="reg2.activateEvent" dur="1"/>
<set target="reg2_enter" attribute="background-color" to="green"
begin="reg2.inBoundsEvent" end="reg2.outOfBoundsEvent"/>
<set target="reg2_leave" attribute="background-color" to="green"
end="reg2.inBoundsEvent" begin="reg2.outOfBoundsEvent"/>
<set target="reg2_1_click" attribute="background-color" to="green"
begin="reg2_1.activateEvent" dur="1"/>
<set target="reg2_1_enter" attribute="background-color" to="green"
begin="reg2_1.inBoundsEvent" end="reg2_1.outOfBoundsEvent"/>
<set target="reg2_1_leave" attribute="background-color" to="green"
end="reg2_1.inBoundsEvent" begin="reg2_1.outOfBoundsEvent"/>
</par>
</body>
</smil>
|