Warning, /multimedia/kmplayer/tests/text.smil is written in an unsupported language. File is not indexed.
0001 <!-- test for moving a region with the animate element --> 0002 <smil> 0003 <head> 0004 <layout> 0005 <root-layout width="640" height="480" background-color="green"/> 0006 <region id="region1" left="7%" top="10%" width="24%" height="10%" z-index="1" background-color="pink" showBackground="whenActive"/> 0007 <region id="region2" left="38%" top="10%" width="24%" height="10%" z-index="2" background-color="yellow" showBackground="whenActive"/> 0008 <region id="region3" left="69%" top="10%" width="24%" height="10%" z-index="3" background-color="cyan" showBackground="whenActive"/> 0009 <region id="region4" left="25%" top="10%" width="50%" height="80%" z-index="4"/> 0010 </layout> 0011 </head> 0012 <body> 0013 <par dur="5"> 0014 <text id="text1" src="data:,Left Align" region="region1"> 0015 <param name="fontColor" value="blue"/> 0016 <param name="fontPtSize" value="12"/> 0017 </text> 0018 <text id="text2" src="data:,Center Align" region="region2"> 0019 <param name="fontColor" value="blue"/> 0020 <param name="fontPtSize" value="12"/> 0021 <param name="hAlign" value="center"/> 0022 </text> 0023 <text id="text3" src="data:,Right Align" region="region3"> 0024 <param name="fontColor" value="blue"/> 0025 <param name="fontPtSize" value="12"/> 0026 <param name="hAlign" value="right"/> 0027 </text> 0028 <animate target="region1" attributeName="left" from="7%" to="69%" begin="2" dur="1.5" fill="freeze"/> 0029 <animate target="region3" attributeName="left" from="69%" to="7%" begin="2" dur="1.5" fill="freeze"/> 0030 <animate target="text3" attributeName="top" from="0%" to="-50%" begin="3.5" dur="1.5" fill="freeze"/> 0031 </par> 0032 <par dur="9"> 0033 <text id="text4" src="chapter2.txt" region="region4"> 0034 <param name="fontColor" value="blue"/> 0035 <param name="fontPtSize" value="11"/> 0036 </text> 0037 <animateMotion target="text4" from="0%,0%" to="0%,-170%" 0038 begin=".5" dur="4" fill="freeze" 0039 calcMode="spline" keySplines=".5 0 .5 1"/> 0040 <animateMotion target="text4" to="0%,-130%" from="0%,-170%" 0041 begin="4.5" dur="0.5" fill="freeze" 0042 calcMode="spline" keySplines=".5 0 .5 1"/> 0043 <animateMotion target="text4" to="0%,-90%" from="0%,-130%" 0044 begin="5.5" dur="0.5" fill="freeze" 0045 calcMode="spline" keySplines=".5 0 .5 1"/> 0046 <animateMotion target="text4" to="0%,-50%" from="0%,-90%" 0047 begin="6.5" dur="0.5" fill="freeze" 0048 calcMode="spline" keySplines=".5 0 .5 1"/> 0049 <animateMotion target="text4" to="0%,0%" from="0%,-50%" 0050 begin="7.5" dur="0.5" fill="freeze" 0051 calcMode="spline" keySplines=".5 0 .5 1"/> 0052 <!--animate target="text4" attributeName="top" from="0%" to="-170%" begin=".5" dur="4" fill="freeze"/--> 0053 </par> 0054 </body> 0055 </smil>