• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8" ?>
2<screenplay xmlns="urn:screenplay">
3
4	<event kind="onLoad">
5		<matrix id="initialMatrix" translate="[80,80]" />
6		<paint  id="imagePaint" antiAlias="true">
7			<color color="lightpink" />
8		</paint>
9		<apply  >
10			<paint />
11			<set begin="4" field="linearText" to="false" />
12		</apply>
13		<save>
14			<matrix>
15				<scale x="0.5" y="0.5" />
16			</matrix>
17		<image id="backImage" src="redcross.jpg" />
18		<save>
19			<matrix id="polyMatrix">
20				<polyToPoly >
21					<polygon>
22						<moveTo id="pt1" x="0" y="0" />
23						<lineTo id="pt2" x="256" y="0" />
24						<lineTo x="256" y="256" />
25						<lineTo x="0" y="256" />
26						<close />
27					</polygon>
28					<polygon >
29						<moveTo x="0" y="0" />
30						<lineTo x="256" y="0" />
31						<lineTo x="256" y="256" />
32						<lineTo x="0" y="256" />
33						<close />
34					</polygon>
35				</polyToPoly>
36			</matrix>
37			<paint id="paintFade">
38				<color id="fade" />
39			</paint>
40			<image id="frontImage" src="bulgaria.jpg" />
41		</save>
42		</save>
43		<apply begin="0.5" scope="polyMatrix">
44			<animate id="pt1x" target="pt1" field="x" from="0" to="64" dur="0.5" repeat="3" />
45			<animate target="pt1" field="y" from="0" to="-455" dur="0.5"  repeat="3"/>
46			<animate target="pt2" field="x" from="256" to="192" dur="0.5"  repeat="3" />
47			<animate target="pt2" field="y" from="0" to="-455" dur="0.5" repeat="3" />
48		</apply>
49		<apply begin="1" scope="backImage" >
50			<set field="src" to="jet.jpg" />
51		</apply>
52		<apply begin="1" scope="frontImage" >
53			<set field="src" to="redcross.jpg" />
54		</apply>
55		<apply begin="1.5" scope="backImage" >
56			<set field="src" to="fire.jpg" />
57		</apply>
58		<apply begin="1.5" scope="frontImage" >
59			<set field="src" to="jet.jpg" />
60		</apply>
61		<apply begin="2" scope="backImage" >
62			<set field="src" to="chest.jpg" />
63		</apply>
64		<apply begin="2" scope="frontImage" >
65			<set field="src" to="fire.jpg" />
66		</apply>
67		<apply begin="2" scope="paintFade" >
68			<animate field="alpha" target="fade" from="1" to="0" dur=".5" />
69		</apply>
70		<post target="addCaptionFade" delay="2" />
71		<post target="addLineCaption" delay="2" />
72		<post target="scaleInitial" delay="3" />
73	</event>
74
75	<event kind="user" id="addCaptionFade" >
76		<apply>
77			<paint  >
78				<color id="captionFade" alpha="0" />
79			</paint>
80			<animate target="captionFade" field="alpha" from="0" to="1" dur="1" />
81		</apply>
82	</event>
83
84	<event kind="user" id="addLineCaption" >
85		<paint textSize="24" textAlign="center" > <!--  -->
86			<shader  />
87		</paint>
88		<text text="Images" x="70" y="160" />
89	</event>
90
91	<event kind="user" id="scaleInitial" >
92		<apply scope="imagePaint" >
93			<set field="linearText" to="true" />
94		</apply>
95		<apply scope="initialMatrix" >
96			<animate field="scale" from="1" to=".5" dur="1"/>
97			<animate field="translateX" from="80" to="145" dur="1"/>
98			<animate field="translateY" from="80" to="172" dur="1"/>
99		</apply>
100	</event>
101
102</screenplay>
103