File version: 6

File is zlib compressed. Ratio: 64%

File size: 29436 (Depacked)

Frame rate: 50.000000

Frame count: 0

Movie width: 250.00

Movie height: 250.00


Back to examples

#
# Sample listbox example for Swftools http://www.quiss.org/swftools/ #
# From the Pipey's Flash 4 example
#
#
# Vertical scrollBar component included so you can reuse it easy in others projects. #
#
.flash bbox=250x250 version=6 name="scrollbar1.swf" compress

        .font myfont "../font/Vera.ttf"
        .box fond width=250 height=250 color=gray fill=white line=2
        .edittext MyEdittext text="" color=blue font=myfont size=15% width=205 height=230 multiline wordwrap border variable=texte

#
# ScrollBar component included
#
#

.sprite ScrollBar_include

.include scrollbar_include.sci #
# See http://technoargia.free.fr/swftools/examples/scrollbar1_include/scrollbar1.html #

.end

#
# Place Objects
#
#

.put fond

.put ScrollBar_include 220 10

.put MyEdittext 10 10

.action:

texte = "SWF Tools is a collection of SWF manipulation and generation utilities written by Rainer Böhme and Matthias Kramm. It is released under the GPL.\n\nIncluded are:\n\n\tPDF2SWF A PDF to SWF Converter. Generates one frame per page. Enables you to have fully formatted text, including tables, formulas etc. inside your Flash Movie. Uses the xpdf PDF parser from Derek B. Noonburg and the tt2pt1 font converter developed by the TTF2PT1 Project and its contributors.\n\n\tSWFCombine A tool for inserting SWFs into Wrapper SWFs. (Templates) E.g. for including the pdf2swf SWFs in some sort of Browsing-SWF.\n\n\tSWFStrings Scans SWFs for text data.\n\n\tSWFDump Prints out various informations about SWFs.\n\n\tJPEG2SWF Takes one or more JPEG pictures and generates a SWF slideshow.\n\n\tPNG2SWF Like JPEG2SWF, only for PNGs. \n\n\tWAV2SWF Converts WAV audio files to SWFs with MP3 Streams, using the L.A.M.E. MP3 encoder.\n\n\tAVI2SWF Converts AVI animation files to SWF. It supports Flash MX H.263 compression. Some examples can be found at examples.html.\nFont2SWF Converts font files (TTF, Type1) to SWF.\nSWFBBox Allows to readjust SWF bounding boxes.\n\n\tSWFC A tool for creating SWF files from simple script files.\n\n\tSWFExtract Allows to extract Movieclips, Sounds, Images etc. from SWF files.\n\n\tRFXSWF Library A fully featured library which can be used for standalone SWF generation. Includes support for Bitmaps, Buttons, Shapes, Text, Fonts, Sound etc. It also has support for ActionScript using the Ming ActionCompiler.\n\nSWFTools has been reported to work on Solaris, Linux, FreeBSD, OpenBSD, HP-UX and MacOS X. ";

// Init parameters for sprite ScrollBar_include

        ScrollBar_include.BarHeight = 230;
        ScrollBar_include.MinValue = 1;
        ScrollBar_include.Increment = 6;

        // Dynamic parameters
        ScrollBar_include.TextField = new Object(_root.MyEdittext); // Path to edittext Object from the sprite
        ScrollBar_include.MaxValue = MyEdittext.maxscroll;
        ScrollBar_include.Initialise();

.end

.end # End swf movie