File version: 6

File size: 10617

Frame rate: 50.000000

Frame count: 1

Movie width: 200.00

Movie height: 200.00


Back to examples

################################################### #
# Simple viewer with home link
#
# technoargia - mars 2006
#
###################################################

.flash filename=viewer_home.swf bbox=autocrop

        .box button_idle width=20 height=60 color=blue fill=salmon line=5
        .box button_hover width=20 height=60 color=red fill=salmon line=6
        .box button_pressed width=20 height=60 color=gray fill=salmon line=5

.outline o_arrow:

        M 60.208843,38.698967 
        L 97.86712,38.698967 
        C 97.86712,38.698967 96.176907,25.416467 101.5254,22.698967
        C 106.94202,19.946851 132.17198,46.056049 131.84195,55.551743 
        C 131.50046,65.377079 105.79971,91.679067 101.5254,88.404518 
        C 97.332023,85.191969 97.86712,72.404518 97.86712,72.404518 
        L 60.208843,72.404518 
        C 57.438843,72.404518 55.208843,70.174518 55.208843,67.404518 
        L 55.208843,43.698967 
        C 55.208843,40.928967 57.438843,38.698967 60.208843,38.698967 z 

.end

.outline o_home:

        M -53.886767,76.403498 
        L -53.886767,34.745221 
        C -53.886767,34.745221 -63.829917,35.216428 -63.886767,31.086941 
        C -63.943617,26.792438 -48.173573,15.507804 -48.173573,15.507804
        L -48.460379,-0.8375205 
        L -39.603782,-0.8609028
        L -39.441205,10.503755 
        C -39.441205,10.503755 -33.561078,0.91501123 -25.033991,0.770391 
        C -16.671921,0.62577077 10.039242,25.68734 11.818784,31.086941 
        C 13.581482,36.435434 1.818784,34.745221 1.818784,34.745221 
        L 1.818784,76.403498 
        C 1.818784,79.173498 -0.411216,81.4035 -3.181216,81.4035 
        L -48.886767,81.4035 
        C -51.656767,81.4035 -53.886767,79.173498 -53.886767,76.403498 z 

.end

        .filled home_idle outline=o_home fill=#3366ff color=navy line=4
        .filled home_hover outline=o_home fill=#336699 color=salmon line=4
        .filled home_pressed outline=o_home fill=#4466ff color=red line=3
        
        .filled arrow_idle outline=o_arrow fill=#3366ff color=navy line=4
        .filled arrow_hover outline=o_arrow fill=#336699 color=salmon line=4
        .filled arrow_pressed outline=o_arrow fill=#4466ff color=red line=3

.button next

        .show arrow_idle as=idle
        .show arrow_idle as=area
        .show arrow_hover as=hover
        .show arrow_pressed as=pressed
        # ActionScript
        .on_release:
        viewport.nextFrame();
        .end

.end

.button prev

        .show arrow_idle as=idle
        .show arrow_idle as=area
        .show arrow_hover as=hover
        .show arrow_pressed as=pressed
        # ActionScript
        .on_release:
        viewport.prevFrame();
        .end

.end

.button home

        .show home_idle as=idle
        .show home_idle as=area 
        .show home_hover as=hover
        .show home_pressed as=pressed
        # ActionScript
        .on_release:
        viewport.gotoAndStop(1);
        /* you can change to your home frame number */
        .end

.end

.sprite viewport

# slave movie go here
.end

.action:

viewport.stop();
.end

        .put viewport
        .put home pin=center x=20 y=23 scale=40% alpha=50%
        .put prev pin=center x=60 y=25 scale=40% alpha=50% rotate=180
        .put next pin=center x=100  y=25 scale=40% alpha=50% rotate=0

.end