User Guide
764 Chapter 14: Properties
fileFreeSize
Usage
-- Lingo syntax
_movie.fileFreeSize
// JavaScript syntax
_movie.fileFreeSize;
Description
Movie property; returns the number of unused bytes in the current movie caused by changes to
the cast libraries and cast members within a movie. Read-only.
The
Save and Compact and Save As commands rewrite the file to delete this free space.
When the movie has no unused space,
fileFreeSize returns 0.
Example
This statement displays the number of unused bytes that are in the current movie:
-- Lingo syntax
put(_movie.fileFreeSize)
// JavaScript syntax
put(_movie.fileFreeSize);
See also
Movie
fileName (Cast)
Usage
-- Lingo syntax
castObjRef.fileName
// JavaScript syntax
castObjRef.fileName;
Description
Cast library property; returns or sets the filename of a cast library. Read-only for internal cast
libraries, read/write for external cast libraries.
For external cast libraries,
fileName returns the cast’s full pathname and filename.
For internal cast libraries,
fileName returns a value depending on which internal cast library
is specified.
• If the first internal cast library is specified, fileName returns the name of the movie.
• If any other internal cast library is specified, fileName returns an empty string.
This property accepts URLs as references. However, to use a cast library from the Internet and
minimize download time, use the
downloadNetThing() or preloadNetThing() methods to
download the cast’s file to a local disk, and then set
fileName to the file on the disk.
If a movie sets the filename of an external cast, do no use the Duplicate cast members for Faster
Loading option in the Project Options dialog box.