Director Help

Cast Library

Represents a single cast library within a movie.

A movie can consist of one or more cast libraries. A cast library can consist of one or more cast members, which represent media in a movie, such as sounds, text, graphics, and other movies.

You can create a reference to a cast library by using either the top level castLib() function or the Movie object’s castLib property. For example, if a movie contains a cast library named scripts, you could create a reference to this cast library by doing the following:

  • Use the top level castLib() method.
    -- Lingo syntax
    libScript = castLib("scripts")
    
    // JavaScript syntax
    var libScript = castLib("scripts");
    
    
  • Use the Movie object’s castLib property.
    -- Lingo syntax
    libScript = _movie.castLib["scripts"]
    
    // JavaScript syntax
    var libScript = _movie.castLib["scripts"];
    
    

Method summary for the Cast Library object

Method 

findEmpty()

Property summary for the Cast Library object

Property 

fileName (Cast)

member (Cast)

name

number (Cast)

preLoadMode

selection

See also

castLib, castLib(), Member, Movie, Player, Sprite, Window