Lingo Dictionary > L-N > moviePath |  |

moviePath

Syntax

    the moviePath

Description

Movie property; indicates the pathname of the folder in which the current movie is located.

For pathnames that work on both Windows and Macintosh computers, use the `@` pathname operator.

To see an example of `moviePath` used in a completed movie, see the Read and Write Text movie in the Learning\Lingo Examples folder inside the Director application folder.

Example

This statement displays the pathname for the folder containing the current movie:

    put the moviePath

Example

This statement plays the sound file Crash.aif stored in the Sounds subfolder of the current movie's folder. Note the path delimiter used, indicating a Windows environment:

    sound playFile 1, the moviePath&"Sounds/crash.aif"

See also

`@ (pathname)`, `movieName`