1 .flash filename=rfxview.swf fps=30 bbox=600x800 version=8 compress background=#CCCCCC export=0
6 #======================================== buttons ===========================================================
8 .gradient grad1 radial x=4 y=4 r=28:
13 .gradient grad2 linear width=8 height=6 rotate=120:
18 .gradient grad4 linear width=8 height=6 rotate=120:
24 .gradient grad2l linear width=8 height=6 rotate=120:
28 .gradient grad4l linear width=8 height=6 rotate=120:
33 .gradient grad3 radial x=4 y=4 r=28:
39 .gradient grad7 linear rotate=180:
44 .gradient grad72 linear rotate=45:
49 .outline arrowoutline:
56 .outline larrowoutline:
63 .font arialbold filename="../viewer/ArialBold.ttf" glyphs="1:"
64 .font arial filename="../viewer/Arial.ttf" glyphs="0123456789 /:"
66 .textshape oneoneoutline text="1:1" font=arialbold size=14pt
84 .outline minusoutline:
92 .circle shadcircle line=0 fill=#00000033 r=11.5
94 .circle outcircle line=2 color=#00000060 fill=grad1 r=11
95 .circle outcircle_over line=2 color=#00000060 fill=grad3 r=11
97 .filled incircle outline=arrowoutline fill=grad2 line=1 color=#00000060
98 .filled incircle_over outline=arrowoutline fill=grad4 line=1 color=#00000060
99 .filled lincircle outline=larrowoutline fill=grad2l line=1 color=#00000060
100 .filled lincircle_over outline=larrowoutline fill=grad4l line=1 color=#00000060
101 .filled pincircle outline=plusoutline fill=grad2l line=1 color=#00000060
102 .filled pincircle_over outline=plusoutline fill=grad4l line=1 color=#00000060
103 .filled mincircle outline=minusoutline fill=grad2l line=1 color=#00000060
104 .filled mincircle_over outline=minusoutline fill=grad4l line=1 color=#00000060
105 .filled oincircle outline=oneoneoutline fill=grad2l line=1.2 color=#00000060
106 .filled oincircle_over outline=oneoneoutline fill=grad4l line=1.2 color=#00000060
109 .put shadcircle 11 13 pin=center .put outcircle 11 11 pin=center .put pincircle 11 11 pin=center scale=90%
112 .put shadcircle 11 13 pin=center .put outcircle_over 11 11 pin=center .put pincircle_over 11 11 pin=center scale=90%
115 .put shadcircle 11 13 pin=center scale=90% .put outcircle_over 11 11 pin=center scale=90% .put pincircle_over 11 11 pin=center scale=79%
119 .put shadcircle 11 13 pin=center .put outcircle 11 11 pin=center .put mincircle 11 11 pin=center scale=90% luminance=60%
121 .sprite minusfaceover
122 .put shadcircle 11 13 pin=center .put outcircle_over 11 11 pin=center .put mincircle_over 11 11 pin=center scale=90%
124 .sprite minusfacedown
125 .put shadcircle 11 13 pin=center scale=90% .put outcircle_over 11 11 pin=center scale=90% .put mincircle_over 11 11 pin=center scale=79%
129 .put shadcircle 11 13 pin=center .put outcircle 11 11 pin=center .put incircle 13 11 pin=center scale=90%
132 .put shadcircle 11 13 pin=center .put outcircle_over 11 11 pin=center .put incircle_over 13 11 pin=center scale=90%
135 .put shadcircle 11 13 pin=center scale=90% .put outcircle_over 11 11 pin=center scale=90% .put incircle_over 13 11 pin=center scale=79%
139 .put shadcircle 11 13 pin=center .put outcircle 11 11 pin=center .put lincircle 9 11 pin=center scale=90%
142 .put shadcircle 11 13 pin=center .put outcircle_over 11 11 pin=center .put lincircle_over 9 11 pin=center scale=90%
145 .put shadcircle 11 13 pin=center scale=90% .put outcircle_over 11 11 pin=center scale=90% .put lincircle_over 9 11 pin=center scale=79%
149 .put shadcircle 11 13 pin=center .put outcircle 11 11 pin=center .put oincircle 9 11 pin=center scale=90% luminance=50%
152 .put shadcircle 11 13 pin=center .put outcircle_over 11 11 pin=center .put oincircle_over 9 11 pin=center scale=90%
155 .put shadcircle 11 13 pin=center scale=90% .put outcircle_over 11 11 pin=center scale=90% .put oincircle_over 9 11 pin=center scale=79%
160 .show outcircle as=area
161 .show rbfacedown as=pressed
162 .show rbfaceover as=hover
167 .show outcircle as=area
168 .show lbfacedown as=pressed
169 .show lbfaceover as=hover
173 .show plusface as=idle
174 .show outcircle as=area
175 .show plusfacedown as=pressed
176 .show plusfaceover as=hover
180 .show minusface as=idle
181 .show outcircle as=area
182 .show minusfacedown as=pressed
183 .show minusfaceover as=hover
188 .show outcircle as=area
189 .show obfacedown as=pressed
190 .show obfaceover as=hover
193 #======================================== frame ===========================================================
197 .put p1=plusbutton x=width-25-20 y=20 pin=center
198 .put m1=minusbutton x=width-50-20 y=20 pin=center
199 .put l1=leftbutton x=width/2-100 y=20 pin=center
200 .put r1=rightbutton x=width/2+100 y=20 pin=center
202 .put o1=oneonebutton x=width-75-20 y=20 pin=center
209 .box vscroll2_shadow line=0 fill=#00000033 width=14 height=100
211 .put vscroll2_shadow x=0 y=0 luminance=1.8
215 .box vscroll2 width=14 height=100 line=1 color=#00000060 fill=grad7
217 .put vscroll2 x=0 y=0 luminance=1.5
221 .box tick line=1 color=black width=8 height=0
223 .sprite t1 .put tt1=tick y=0 x=3 .end .put t1
224 .sprite t2 .put tt2=tick y=0 x=3 .end .put t2 y=50
225 .sprite t3 .put tt3=tick y=0 x=3 .end .put t3
227 .button vscrollbutton
228 .show vscroll2 as=area
230 startDrag(false, _parent.fullwidth-22, 40,
231 _parent.fullwidth-22, 40+_parent.scrollbaryrange);
232 _parent.Dragging = "v";
236 _parent.refreshDrag();
237 _parent.Dragging = "";
244 .box hscroll2_shadow width=100 line=0 fill=#00000033 height=14
246 .put hscroll2_shadow x=0 y=0 luminance=1.5
250 .box hscroll2 width=100 height=14 line=1 color=#00000060 fill=grad72
252 .put hscroll2 x=0 y=0 luminance=1.5
256 .box htick line=1 color=black width=0 height=8
258 .sprite th1 .put tht1=htick x=0 y=3 .end .put th1
259 .sprite th2 .put tht2=htick x=0 y=3 .end .put th2 x=50
260 .sprite th3 .put tht3=htick x=0 y=3 .end .put th3
262 .button hscrollbutton
263 .show hscroll2 as=area
265 startDrag(false, 10 , _parent.fullheight-22,
266 10+_parent.scrollbarxrange, _parent.fullheight-22);
267 _parent.Dragging = "h";
271 _parent.refreshDrag();
272 _parent.Dragging = "";
278 .put hscrollbar y=height-22 x=10
279 .put vscrollbar x=width-22 y=40
281 .edittext et width=110 height=20 font=arial size=18pt color=black noselect align=center
283 .font dbgarial filename="../doc/Courier.ttf"
284 #.edittext debugtxt width=width height=20 font=dbgarial size=18pt color=#004000 noselect
287 .put et x=width/2-30 y=8
289 #.swf swf filename=paper5.swf
293 .box f width=100 height=100 line=0 fill=black
298 swf.startDrag(false, left-scrollxrange, top-scrollyrange, left,top);
306 .put areabutton x=10 y=40
311 .put cliparea=cf x=10 y=40
316 swfwidth = swf._width;
317 swfheight = swf._height;
321 Stage.scaleMode="noScale";
324 //Stage.showMenu = false;
326 fullwidth = Stage.width;
327 fullheight = Stage.height;
328 contentwidth = fullwidth - 40;
329 contentheight = fullheight - 70;
331 // move all objects to their proper positions
332 vscrollbar._x = fullwidth-22;
333 hscrollbar._y = fullheight-22;
334 p1._x = fullwidth-25-20 - p1._width/2;
335 o1._x = fullwidth-50-20 - o1._width/2;
336 m1._x = fullwidth-75-20 - m1._width/2;
338 l1._x = fullwidth/2-100 - l1._width/2;
339 r1._x = fullwidth/2+100 - r1._width/2;
341 et._x = fullwidth/2 - et._width/2;
343 //.box f width=width-40 height=height-40-30 line=0 fill=black
344 //.box vscroll1 width=10 height=height-40-30 line=1 color=#00000060 fill=grad7
345 //.box hscroll1 height=10 width=width-40 line=1 color=#00000060 fill=grad72
346 //.put vscroll1 x=width-20 y=40
347 //.put hscroll1 x=10 y=height-20
349 // horizontal scrollbar
350 background.lineStyle(1, 0, 0x60);
351 background.moveTo(10 ,fullheight-20);
352 background.lineTo(10 ,fullheight-10);
353 background.lineTo(10+fullwidth-40,fullheight-10);
354 background.lineTo(10+fullwidth-40,fullheight-20);
355 background.lineTo(10 ,fullheight-20);
357 // vertical scrollbar
358 background.moveTo(fullwidth-20 ,40);
359 background.lineTo(fullwidth-20 ,fullheight-30);
360 background.lineTo(fullwidth-10 ,fullheight-30);
361 background.lineTo(fullwidth-10 ,40);
362 background.lineTo(fullwidth-20 ,40);
365 background.lineStyle(1, 0);
366 background.startFill(0x000000);
367 background.moveTo(9, 39);
368 background.lineTo(fullwidth-30+1, 39);
369 background.lineTo(fullwidth-30+1, fullheight-29);
370 background.lineTo(9, fullheight-29);
371 background.lineTo(9, 39);
372 background.endFill();
374 areabutton._xscale = contentwidth;
375 areabutton._yscale = contentheight;
376 cliparea._xscale = contentwidth;
377 cliparea._yscale = contentheight;
378 swf.setMask(cliparea);
385 //debugtxt.text = Stage.width+ " x " + Stage.height;
387 setPageNr = function() {
388 et.text = " "+pagenr+" / "+swf._totalframes;
389 swf.gotoAndStop(pagenr);
392 setNoScrollZoomLevel = function() {
393 // determine initial zoom level
394 xscale = contentwidth / swfwidth;
395 yscale = contentheight / swfheight;
396 if(xscale < yscale) {
405 set11ZoomLevel = function() {
410 swfpos2scrollbars = function() {
412 hscrollbar._x = 10 + (left-swf._x)*scrollbarxrange/scrollxrange;
417 vscrollbar._y = 40 + (top-swf._y)*scrollbaryrange/scrollyrange;
422 setZoomLevel = function() {
424 width = contentwidth;
425 height = contentheight;
429 if(swfwidth * zoom < contentwidth) {
430 width = swfwidth*zoom;
431 left = 10+(contentwidth-width)/2;
433 if(swfheight * zoom < contentheight) {
434 height = swfheight*zoom;
435 top = 40+(contentheight-height)/2;
438 scrollxrange = swfwidth*zoom-width;
439 scrollyrange = swfheight*zoom-height;
441 hscrollbar._xscale = (contentwidth*width) / (swfwidth*zoom);
442 vscrollbar._yscale = (contentheight*height) / (swfheight*zoom);
443 scrollbarxrange = contentwidth - hscrollbar._xscale;
444 scrollbaryrange = contentheight - vscrollbar._yscale;
445 if(scrollbarxrange<0) {
448 if(scrollbaryrange<0) {
452 swf._xscale = zoom*100;
453 swf._yscale = zoom*100;
455 focusx = contentwidth/2 - (swf._x-10);
456 focusy = contentheight/2 - (swf._y-40);
458 swf._x = left - focusx * zoom / lastzoom + width/2;
459 swf._y = top - focusy * zoom / lastzoom + height/2;
463 } else if(swf._x < left-scrollxrange) {
464 swf._x = left-scrollxrange;
468 } else if(swf._y < top-scrollyrange) {
469 swf._y = top-scrollyrange;
475 hscrollbar._visible = 1;
477 //hscrollbar._visible = 0;
480 vscrollbar._visible = 1;
482 //vscrollbar._visible = 0;
487 // update the ruler decorations
489 vscrollbar.t1._y = vscrollbar.t2._y - 600.0/vscrollbar._yscale;
490 vscrollbar.t3._y = vscrollbar.t2._y + 600.0/vscrollbar._yscale;
491 hscrollbar.th1._x = hscrollbar.th2._x - 600.0/hscrollbar._xscale;
492 hscrollbar.th3._x = hscrollbar.th2._x + 700.0/hscrollbar._xscale;
494 vscrollbar.vshadow._x = vscrollbar.vbox._x + 500/vscrollbar._xscale;
495 vscrollbar.vshadow._y = vscrollbar.vbox._y + 500/vscrollbar._yscale;
497 hscrollbar.hshadow._x = hscrollbar.hbox._x + 500/hscrollbar._xscale;
498 hscrollbar.hshadow._y = hscrollbar.hbox._y + 500/hscrollbar._yscale;
503 setNoScrollZoomLevel();
506 l1.onRelease = function(){
512 r1.onRelease = function(){
513 if(pagenr < swf._totalframes) {
518 p1.onRelease = function(){
524 m1.onRelease = function(){
532 o1.onRelease = function(){
533 setNoScrollZoomLevel();
535 refreshDrag = function(){
536 if(Dragging == "h") {
537 swf._x = left + (10-hscrollbar._x)*scrollxrange/scrollbarxrange;
538 } else if(Dragging == "v") {
539 swf._y = top + (40-vscrollbar._y)*scrollyrange/scrollbaryrange;
540 } else if(Dragging == "xy") {
544 dragrefresh = setInterval(refreshDrag, 20);