Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Blend Mode Algorithms - Imaging Lingo
Play Soundfile
Universal Movie Pause Button
Datagrip Net
Title Bar MIAW
Shockwave for Dummies With CDROM
Cinemac
Text Outliner
Resizing Flash Sprite to its Original Size
markerXtra
 

 

 

Behavior castLib.saveAndCompact() from Lingo

Added on 6/11/2003

 

Compatibilities:
D9

Required Xtras:
FileXtra

Rating:

Author: peterh

castLib.save() is a documented Lingo function, but doesn't compact the cast when it does. If you want to compact it aswell, you must save it under a different name. Funnily enough, after you've done that, saving again under the original name will save a compressed cast. Then just delete the file you first saved. (Works in MX, don't know about others)

on saveAndCompact cLib
  fName=cLib.fileName
  cLib.save(fName&"X")
  cLib.save(fName)
  
  fxObj = xtra("FileXtra4").new()
  flist= fxObj.fx_FileDelete(fName&"X")
  fxObj=0
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail