File version: 5

File is zlib compressed. Ratio: 87%

File size: 49778 (Depacked)

Frame rate: 50.000000

Frame count: 0

Movie width: 300.00

Movie height: 200.00

#
# Button1 example for Swftools http://www.quiss.org/swftools/ #
#
# jpeg button and actionscript movie control #

.flash bbox=300x200 version=5 name="button1.swf" compress

        .box fond width=300 height=200 color=gray fill=white line=2
        .jpeg button_idle "idle.jpg" quality=100%
        .jpeg button_hover "hover.jpg" quality=100%
        .jpeg button_pressed "pressed.jpg" quality=100%
        .swf movie "../movies/tessel_loader.swf"

.sprite movie_clip

        .frame 1
        .put movie pin=center x=-100 y=150 scale=40%
        .frame 100
        .change movie pin=center x=150 y=150 scale=70%
        .frame 140
        .change movie pin=center x=150 y=150 scale=70%
        .frame 240
        .change movie pin=center x=400 y=150 scale=40%

.end

.sprite blank
# empty movie :-)
.end

.button jpeg_button

        .show button_idle as=idle
        .show button_idle as=area
        .show button_hover as=hover
        .show button_pressed as=pressed
        # ActionScript
        .on_press:
        RunMovie();
        .end

.end
#
# Place Objects
#
.put fond

.put jpeg_button pin=center x=150 y=50 #
# Actionscript routines
#

.action:

var movie_state ;

function RunMovie() {

        if (movie_state == "run") {
        _root.attachMovie("blank","movie1",2);
        movie_state = "stop";
        } else { 
        _root.createEmptyMovieClip("movie1",2);
        _root.attachMovie("movie_clip","movie1",2);
        movie_state = "run";
        }

}
.end # End actionscript

.end # End swf movie