Lingo Dictionary > S > safePlayer |  |

safePlayer

Syntax

    the safePlayer

Description

System property; controls whether or not safety features in Director are turned on.

In a Shockwave movie, this property can be tested but not set. It is always `TRUE` in Shockwave.

In the authoring environment and in projectors, the default value is `FALSE`. This property may be tested, but it may only be set to `TRUE`. Once it has been set to `TRUE`, it cannot be set back to `FALSE` without restarting Director or the projector.

Projectors load Xtras before the `on prepareMovie` handler is executed. If the `safePlayer` is set to `TRUE` after a projector has loaded unsafe Xtras, those Xtras will not be disabled. Be sure to use only those Xtras that are safe or that you have specifically chosen to allow.

When `safePlayer` is `TRUE`, the following safety features are in effect:

| Only safe Xtras may be used.
| The `safePlayer` property cannot be reset.
| Pasting content from the Clipboard by using the `pasteClipBoardInto` command generates a warning dialog box that allows the user to cancel the operation.
| Handling Macintosh resource files by using the obsolete `openResFile` or `closeResFile` command is disabled.
| Saving a movie or cast by using Lingo is disabled.
| Printing by using the `printFrom` command is disabled.
| Opening an application by using the `open` command is disabled.
| The ability to stop an application or the user's computer by using the `restart` or `shutDown` command is disabled.
| Sending strings to Windows Media Control Interface (MCI) by using `mci` is disabled.
| Opening a file that is outside the DSWMedia folder is disabled.
| Discovering a local file name is disabled.
| Using `getNetText()` or `postNetText()`, or otherwise accessing a URL that does not have the same domain as the movie, generates a security dialog box.