User Guide

565
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.
When
safePlayer is TRUE, the following safety features are in effect:
Only safe Xtra extensions 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 filename 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.
sampleCount
Syntax
sound(channelNum).sampleCount
the sampleCount of sound(channelNum)
Description
Read-only property; the number of sound samples in the currently playing sound in sound
channel
channelNum. This is the total number of samples, and depends on the sampleRate and
duration of the sound. It does not depend on the channelCount of the sound.
A 1-second, 44.1 KHz sound contains 44,100 samples.