-- Lingo syntax _movie.script[scriptNameOrNum] // JavaScript syntax _movie.script[scriptNameOrNum];
Movie property; provides indexed or named access to the script cast members of a movie. Read-only.
The scriptNameOrNum argument can be either a string that specifies the name of the script cast member or an integer that specifies the number of the script cast member.
scriptNameOrNum is a string, the script property provides access to the script cast member, regardless of which cast library contains that member.
scriptNameOrNum is an integer, the script property provides access only to the script cast member found within the first cast library of the referenced movie; you cannot use indexed access to specify a cast library other than the first one.
The following statement accesses a named script.
-- Lingo syntax bugScript = _movie.script["Warrior Ant"] // JavaScript syntax var bugScript = _movie.script["Warrior Ant"];
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/director/mx2004/release_en/09_pr558.htm