User Guide
270 Chapter 14 Scripting the Visual Tools Object Model
ZIPProvider Object
The ZIPProvider object is the general purpose PKZIP services object used by the
Visual Tools for ZIP file composition and extraction. You can use this object in your
VTOM scripts for low-level PKZIP operations from within the Visual Tools. Because
Macromedia uses a licensed control for its ZIP operations, you cannot use
ZIPProvider outside of the Visual Tools.
Properties
CompressionLevel
Syntax CompressionLevel: Integer
Description Sets and gets the compression level use to compress the archive file. You can set the
value from 0 to 9; 0 represents no compression, 1 is fastest compression, and 9 is the
slowest but most size-efficient compression.
ExtractionDir
Syntax ExtractionDir: OleVariant
Description Sets and gets the directory path where the files are extracted from an existing archive
file using the Extract method.
FileCount
Syntax FileCount: Integer (read-only)
Description The number of elements in the archive.
Overwrite
Syntax Overwrite: WordBool
Description Boolean. Sets and gets whether the newly extracted files overwrite any existing file in
the
ExtractionDir directory.
Password
Syntax Password: OleVariant
Description Sets/gets the password for the archive file. Set this property when extracting
password protected files or to passwor- protect files in an archive file that you just
created.