Lingo Dictionary > Lingo by Feature > Memory management |  |

Memory management

These terms are useful for determining memory requirements and controlling when the movie loads and unloads cast members.

Use the `on idle` event handler for Lingo that runs when the movie is idle.

Idle loading

Use these terms to control idle loading:

`cancelIdleLoad` | `idleLoadPeriod`
`finishIdleLoad` | `idleLoadTag`
`idleHandlerPeriod` | `idleReadChunkSize`
`idleLoadDone()` | `netThrottleTicks`

Preloading and querying media

Use these terms to load media into memory and check whether media is available:

`frameReady()` | `preloadNetThing()`
`loaded` | `preLoadMember`
`mediaReady` | `preLoadMovie`
`preLoad (command)` | `preLoadRAM`
`preLoad (cast member property)` | `purgePriority`
`preLoadBuffer()` | `unLoad`
`preLoadEventAbort` | `unLoadMember`
`preLoadMode` | `unloadMovie`

Available memory

Use these terms to check how much memory is available:

`freeBlock()` | `movieFileFreeSize`
`freeBytes()` | `movieFileSize`
`memorySize` | ``

Memory requirements

Use `ramNeeded()` and `size` to determine how much memory required for a cast member or a range of frames.