Lingo Dictionary > D-F > fileName (window property) |  |

fileName (window property)

Syntax

    window whichWindow.fileName
    the fileName of window whichWindow

Description

Window property; refers to the file name of the movie assigned to the window specified by `whichWindow`. When the linked file is in a different folder than the movie, you must include the file's pathname.

To be able to play the movie in a window, you must set the `fileName` window property to the movie's file name.

The `fileName of window` property accepts URLs as a reference. However, to use a movie file from a URL and minimize the download time, use the `downloadNetThing` or `preloadNetThing` command to download the movie file to a local disk first and then set `fileName` window property to the file on the local disk.

This property can be tested and set.

Example

This statement assigns the file named Control Panel to the window named Tool Box:

    window("Tool Box").fileName = "Control Panel"

Example

This statement displays the file name of the file assigned to the window named Navigator:

    put window("Navigator").fileName

Example

These statements download a movie file from a URL to the Director application folder and then assign that file to the window named My Close Up:

    downLoadNetThing("http://www.cbDeMille.com/Finale.DIR",the  \ applicationPath&"Finale.DIR")
    window("My Close Up").fileName = the applicationPath&"Finale.DIR"

See also

`downloadNetThing`, `preloadNetThing()`