OLD | NEW |
(Empty) | |
| 1 <?xml version="1.0" encoding="utf-8"?> |
| 2 <screenplay> |
| 3 <event kind="onLoad"> |
| 4 <paint id="myPaint" antiAlias="true"> |
| 5 <color color="yellow"/> |
| 6 </paint> |
| 7 <rect left="0" top="0" width="240" height="320"/> |
| 8 <matrix> |
| 9 <scale center="[0,0]" x=".55"/> |
| 10 </matrix> |
| 11 <paint> |
| 12 <color color="black"/> |
| 13 </paint> |
| 14 <rect id="backbar" left="0" top="5" height="22" width="500"/> |
| 15 <paint> |
| 16 <color id="col0" color="blue"/> |
| 17 </paint> |
| 18 <save> |
| 19 <matrix> |
| 20 <skew id="sk0" center="[300,0]" x="-1.1"/> |
| 21 </matrix> |
| 22 <rect id="rec0" top="0" left="300" height="32" width="11
0"/> |
| 23 </save> |
| 24 <paint textSize="18"> |
| 25 <color color="black"/> |
| 26 </paint> |
| 27 <text id="back0" x="301" y="21" text="End of the World!"/> |
| 28 <paint textSize="18"> |
| 29 <color id="textcol0" color="yellow"/> |
| 30 </paint> |
| 31 <text id="fore0" x="300" y="20" text="End of the World!"/> |
| 32 <matrix> |
| 33 <translate y="50" x="-45"/> |
| 34 </matrix> |
| 35 <paint> |
| 36 <color id="col1" color="blue"/> |
| 37 </paint> |
| 38 <save> |
| 39 <matrix> |
| 40 <skew id="sk1" center="[300,0]" x="-1.1"/> |
| 41 </matrix> |
| 42 <rect id="rec1" top="0" left="300" height="32" width="11
0"/> |
| 43 </save> |
| 44 <paint textSize="18"> |
| 45 <color color="black"/> |
| 46 </paint> |
| 47 <text id="back1" x="301" y="21" text="Some other news story!"/> |
| 48 <paint textSize="18"> |
| 49 <color id="textcol1" color="yellow"/> |
| 50 </paint> |
| 51 <text id="fore1" x="300" y="20" text="Some other news story!"/> |
| 52 <matrix> |
| 53 <translate y="50" x="-45"/> |
| 54 </matrix> |
| 55 <apply> |
| 56 <post/> |
| 57 <set field="target" to="#script:0"/> |
| 58 </apply> |
| 59 </event> |
| 60 <array id="selector" values="[0,1]"/> |
| 61 <int id="index" value="0"/> |
| 62 <event kind="keyPress" code="down" id="downpress"> |
| 63 <apply scope="myPaint"> |
| 64 <animate target="backbar" field="top" from="backbar.top"
to="backbar.top+50" dur=".25"/> |
| 65 <animate target="backbar" field="bottom" from="backbar.b
ottom" to="backbar.bottom+50" dur=".25"/> |
| 66 </apply> |
| 67 <apply scope="index"> |
| 68 <set field="value" to="index.value < selector.length-
1 ? index.value+1 : selector.length-1"/> |
| 69 </apply> |
| 70 <apply> |
| 71 <post/> |
| 72 <set field="target" to="#script:selector.values[index.va
lue]"/> |
| 73 </apply> |
| 74 <apply scope="downpress"> |
| 75 <set field="disable" to="index.value < selector.lengt
h-1 ? 0:1"/> |
| 76 </apply> |
| 77 <post target="enableup"/> |
| 78 </event> |
| 79 <event kind="keyPress" code="up" id="uppress" disable="true"> |
| 80 <apply scope="downpress"> |
| 81 <set field="disable" to="false"/> |
| 82 </apply> |
| 83 <apply scope="myPaint"> |
| 84 <animate target="backbar" field="top" from="backbar.top"
to="backbar.top-50" dur=".25"/> |
| 85 <animate target="backbar" field="bottom" from="backbar.b
ottom" to="backbar.bottom-50" dur=".25"/> |
| 86 </apply> |
| 87 <apply scope="index"> |
| 88 <set field="value" to="index.value ? index.value-1 : 0"/
> |
| 89 </apply> |
| 90 <apply> |
| 91 <post/> |
| 92 <set field="target" to="#script:selector.values[index.va
lue]"/> |
| 93 </apply> |
| 94 <apply scope="uppress"> |
| 95 <set field="disable" to="index.value > 0 ? 0:1"/> |
| 96 </apply> |
| 97 </event> |
| 98 <event kind="user" id="enableup"> |
| 99 <apply scope="uppress"> |
| 100 <set field="disable" to="false"/> |
| 101 </apply> |
| 102 </event> |
| 103 <event kind="user" id="0"> |
| 104 <apply scope="myPaint"> |
| 105 <animate from="col0.color" field="color" target="col0" t
o="red" dur=".25"/> |
| 106 <animate from="textcol0.color" field="color" target="tex
tcol0" to="white" dur=".25"/> |
| 107 <animate from="sk0.x" blend="0" field="x" target="sk0" t
o="1.1" dur=".25"/> |
| 108 <animate from="back0.x" field="x" target="back0" to="341
" dur=".25"/> |
| 109 <animate from="fore0.x" field="x" target="fore0" to="340
" dur=".25"/> |
| 110 </apply> |
| 111 <apply scope="myPaint"> |
| 112 <animate from="col1.color" field="color" target="col1" t
o="blue" dur=".25"/> |
| 113 <animate from="textcol1.color" field="color" target="tex
tcol1" to="yellow" dur=".25"/> |
| 114 <animate from="sk1.x" blend="0" field="x" target="sk1" t
o="-1.1" dur=".25"/> |
| 115 <animate from="back1.x" field="x" target="back1" to="301
" dur=".25"/> |
| 116 <animate from="fore1.x" field="x" target="fore1" to="300
" dur=".25"/> |
| 117 </apply> |
| 118 </event> |
| 119 <event kind="user" id="1"> |
| 120 <apply scope="myPaint"> |
| 121 <animate from="col0.color" field="color" target="col0" t
o="blue" dur=".25"/> |
| 122 <animate from="textcol0.color" field="color" target="tex
tcol0" to="yellow" dur=".25"/> |
| 123 <animate from="sk0.x" blend="0" field="x" target="sk0" t
o="-1.1" dur=".25"/> |
| 124 <animate from="back0.x" field="x" target="back0" to="301
" dur=".25"/> |
| 125 <animate from="fore0.x" field="x" target="fore0" to="300
" dur=".25"/> |
| 126 </apply> |
| 127 <apply scope="myPaint"> |
| 128 <animate from="col1.color" field="color" target="col1" t
o="red" dur=".25"/> |
| 129 <animate from="textcol1.color" field="color" target="tex
tcol1" to="white" dur=".25"/> |
| 130 <animate from="sk1.x" blend="0" field="x" target="sk1" t
o="1.1" dur=".25"/> |
| 131 <animate from="back1.x" field="x" target="back1" to="341
" dur=".25"/> |
| 132 <animate from="fore1.x" field="x" target="fore1" to="340
" dur=".25"/> |
| 133 </apply> |
| 134 </event> |
| 135 <event kind="keyPress" code="OK"> |
| 136 <apply> |
| 137 <post/> |
| 138 <set field="target" to="#script:'enter' + index.value"/> |
| 139 </apply> |
| 140 </event> |
| 141 <event kind="user" id="enter0"> |
| 142 <post type="uri"> |
| 143 <data name="uri" string="http://www.cnn.com"/> |
| 144 </post> |
| 145 </event> |
| 146 <event kind="user" id="enter1"> |
| 147 <post type="uri"> |
| 148 <data name="uri" string="http://www.cnn.com"/> |
| 149 </post> |
| 150 </event> |
| 151 </screenplay> |
OLD | NEW |