6 |
|
|
7 |
.flash filename=E_viewer.swf bbox=100x50 |
.flash filename=E_viewer.swf bbox=100x50 |
8 |
|
|
9 |
|
.font comic filename="fonts/comic.swf" |
10 |
|
|
11 |
|
.box menu_background width=130 height=60 color=navy fill=gray line=0 |
12 |
|
.box page_progress_bar width=110 height=10 color=white line=2 |
13 |
|
.box page_current_page width=10 height=10 color=black fill=white line=0 |
14 |
|
|
15 |
.box button_idle width=20 height=60 color=blue fill=salmon line=5 |
.box button_idle width=20 height=60 color=blue fill=salmon line=5 |
16 |
.box button_hover width=20 height=60 color=red fill=salmon line=6 |
.box button_hover width=20 height=60 color=red fill=salmon line=6 |
17 |
.box button_pressed width=20 height=60 color=gray fill=salmon line=5 |
.box button_pressed width=20 height=60 color=gray fill=salmon line=5 |
18 |
# .box cadre_menu width=50 height=150 color=navy fill=salmon line=2 |
.box border_left width=10 height=300 color=gray fill=gray line=3 |
|
.box border_left width=5 height=800 color=gray fill=white line=3 |
|
|
|
|
|
.edittext info text="info" color=black size=100% width=60 height=60 align=center border=none noselect variable=infoText |
|
|
|
|
|
.outline o_cadre: |
|
19 |
|
|
20 |
M 12.3,-1.2483537 |
.edittext info text="info" color=black width=110 height=20 align=center border=none noselect variable=infoText font=comic size=12pt |
|
L 40.130855,-1.2483537 |
|
|
C 46.945055,-1.2483537 52.430855,4.2374464 52.430855,11.051646 |
|
|
L 52.430855,123.77055 |
|
|
C 52.430855,130.58475 46.945055,136.07055 40.130855,136.07055 |
|
|
L 12.3,136.07055 C 5.4858001,136.07055 0,130.58475 0,123.77055 |
|
|
L 0,11.051646 C 0,4.2374464 5.4858001,-1.2483537 12.3,-1.2483537 z |
|
21 |
|
|
|
.end |
|
22 |
.outline o_arrow: |
.outline o_arrow: |
23 |
|
|
24 |
M 60.208843,38.698967 |
M 60.208843,38.698967 |
55 |
|
|
56 |
.filled home_idle outline=o_home fill=#336699 color=navy line=4 |
.filled home_idle outline=o_home fill=#336699 color=navy line=4 |
57 |
.filled home_hover outline=o_home fill=#3366ff color=salmon line=4 |
.filled home_hover outline=o_home fill=#3366ff color=salmon line=4 |
58 |
.filled home_pressed outline=o_home fill=#4466ff color=red line=3 |
.filled home_pressed outline=o_home fill=#8866ff color=red line=3 |
59 |
|
|
60 |
.filled arrow_idle outline=o_arrow fill=#336699 color=navy line=4 |
.filled arrow_idle outline=o_arrow fill=#336699 color=navy line=4 |
61 |
.filled arrow_hover outline=o_arrow fill=#3366ff color=salmon line=4 |
.filled arrow_hover outline=o_arrow fill=#3366ff color=salmon line=4 |
62 |
.filled arrow_pressed outline=o_arrow fill=#4466ff color=red line=3 |
.filled arrow_pressed outline=o_arrow fill=#8866ff color=red line=3 |
|
|
|
|
.filled cadre_menu outline=o_cadre fill=salmon color=grey line=3 |
|
63 |
|
|
64 |
.button next |
.button next |
65 |
|
|
107 |
|
|
108 |
.button menu_left |
.button menu_left |
109 |
|
|
110 |
.show border_left as=area alpha=0% |
.show border_left as=area alpha=50% |
111 |
.on_move_in : |
.on_move_in : |
112 |
showMenu(); |
showMenu(); |
113 |
.end |
.end |
120 |
.end |
.end |
121 |
|
|
122 |
.put viewport |
.put viewport |
123 |
.put menu_left |
# .put menu_left |
124 |
|
|
125 |
|
.sprite page_bar |
126 |
|
.frame 1 |
127 |
|
.put page_progress_bar x=0 y=0 |
128 |
|
.put page_current_page x=0 y=0 |
129 |
|
.stop |
130 |
|
.frame 100 |
131 |
|
.change page_current_page x=100 |
132 |
|
.end |
133 |
|
|
134 |
.sprite C_menu |
.sprite C_menu |
135 |
|
|
136 |
.put cadre_menu y=5 alpha=90% |
.put menu_background x=5 y=5 alpha=90% |
137 |
.put home pin=center x=25 y=28 scale=40% alpha=50% |
.put home pin=center x=30 y=30 scale=40% alpha=50% |
138 |
.put prev pin=center x=25 y=65 scale=40% alpha=50% rotate=180 |
.put prev pin=center x=70 y=30 scale=40% alpha=50% rotate=180 |
139 |
.put next pin=center x=25 y=95 scale=40% alpha=50% rotate=0 |
.put next pin=center x=110 y=30 scale=40% alpha=50% rotate=0 |
140 |
|
|
141 |
|
.put page_bar x=15 y=50 |
142 |
|
.put info x=15 y=45 |
143 |
.end |
.end |
144 |
|
|
145 |
|
# change this animation for show/hide effect of menu |
146 |
.sprite s_menu |
.sprite s_menu |
147 |
.frame 1 |
.frame 1 |
148 |
|
|
149 |
.put C_menu x=-60 |
.put C_menu alpha=0% |
|
.put info x=-65 y=110 alpha=50% |
|
150 |
|
|
151 |
.frame 4 |
.frame 5 |
152 |
|
|
153 |
.change C_menu x=5 |
.change C_menu alpha=100% |
|
.change info x=0 |
|
154 |
.stop |
.stop |
155 |
|
|
156 |
.frame 8 |
.frame 10 |
157 |
|
|
158 |
.change C_menu x=-60 |
.change C_menu alpha=0% |
|
.change info x=-65 |
|
159 |
.stop |
.stop |
160 |
|
|
161 |
.end |
.end |
170 |
|
|
171 |
info._alpha = 50; |
info._alpha = 50; |
172 |
info.embedFonts = 0; |
info.embedFonts = 0; |
|
var monStyle = new TextFormat(); |
|
|
monstyle.bold = true; |
|
|
monStyle.italic = false; |
|
|
monStyle.border = false; |
|
|
monStyle.font = "_sans"; |
|
|
_root.menu.info.setTextFormat(monStyle); |
|
173 |
|
|
174 |
function showMenu() { |
function showMenu() { |
175 |
_root.menu._y = _root.viewport._ymouse - 60; |
/* |
176 |
if(_root.menu._y < 0) { |
_root.menu._y = _root.viewport._ymouse - 60; |
177 |
_root.menu._y = 0; |
if(_root.menu._y < 0) { |
178 |
}; |
_root.menu._y = 0; |
179 |
_root.menu.Play(); |
}; |
180 |
|
*/ |
181 |
|
_root.menu.Play(); |
182 |
}; |
}; |
183 |
|
|
184 |
function updateInfo() { |
function updateInfo() { |
185 |
_root.menu.infoText = String(_root.viewport._currentframe) + " / " + String(_root.viewport._totalframes); |
var page = _root.viewport._currentframe; |
186 |
|
var total = _root.viewport._totalframes; |
187 |
|
|
188 |
|
var pos = Math.floor( |
189 |
|
( page - 1 ) / ( total - 1 ) * 100 |
190 |
|
); |
191 |
|
|
192 |
|
if ( pos == 0 ) pos = 1; |
193 |
|
|
194 |
|
_root.menu.C_menu.infoText = String(page) + " / " + String(total) |
195 |
|
// + "\r" + String(pos) |
196 |
|
; |
197 |
|
_root.menu.C_menu.page_bar.gotoAndStop( pos ); |
198 |
}; |
}; |
199 |
|
|
200 |
updateInfo(); |
updateInfo(); |
252 |
_root.viewport.nextFrame(); |
_root.viewport.nextFrame(); |
253 |
updateInfo(); |
updateInfo(); |
254 |
break; |
break; |
255 |
|
case 27: //Key.Escape: |
256 |
|
ShowMenu(); |
257 |
|
updateInfo(); |
258 |
|
break; |
259 |
|
|
260 |
} |
} |
261 |
updateAfterEvent(); |
updateAfterEvent(); |