Lingo Dictionary > T-Z > unloadMovie |  |

unloadMovie

Syntax

    unloadMovie whichMovie

Description

Command; removes the specified preloaded movie from memory. This command is useful in forcing movies to unload when memory is low.

You can use a URL as the file reference.

If the movie isn't already in RAM, the result is -1.

Example

This statement checks whether the largest contiguous block of free memory is less than 100K and unloads the movie Parsifal if it is:

    if (the freeBlock < (100 * 1024)) then unLoadMovie "Parsifal"

Example

This statement unloads the movie at http://www.cbDemille.com/SunsetBlvd.dir:

    unLoadMovie "http://www.cbDemille.com/SunsetBlvd.dir"