Previous - zipAdd Section Home - Zip Compression Next - zipIsOpen


zipClose ( )

Closes the newly created zip archive file

Usage:

zipClose (object me)

Parameters:

None

Returns:

(integer) - The success code

Example:

xtRose = xtra("Rosetta").new( )
if xtRose.zipCreate( "C:\DirectorData.zip" ) > 0 then
  xtRose.zipAdd( "C:\Program Files\Macromedia\Director 8.5\Welcome.dcr", "myNewFolder\shock.dcr" )
  xtRose.zipAdd( "C:\Program Files\Macromedia\Director 8.5\credits.dcr", "credits.dcr" )
  xtRose.zipClose( )
end if

Notes:

Rosetta automatically close and release all memory used when the xtra object reference is release by Director. This can be when you set the xtra reference to 0 ( xtRose = 0 ) or when you close your application. Only the xtra instance will have access to the newly created zip archive. Call zipClose before allowing other software access to the zip file.


Previous - zipAdd Section Home - Zip Compression Next - zipIsOpen