User Guide

494 Chapter 12: Methods
readWord()
Usage
-- Lingo syntax
fileioObjRef.readWord()
// JavaScript syntax
fileioObjRef.readWord();
Description
Fileio method; Reads the next word of a file and returns it as a string.
You must first open a file by calling
openFile() before using readWord() to read a word.
Parameters
None.
See also
Fileio, openFile()
realPlayerNativeAudio()
Usage
-- Lingo syntax
realPlayerNativeAudio()
// JavaScript syntax
realPlayerNativeAudio();
Description
RealMedia function; allows you to get or set the global flag that determines whether the audio
portion of the RealMedia cast member is processed by RealPlayer (
TRUE) or by Director (FALSE).
This function returns the previous value of the flag.
To be effective, this flag must be set before RealPlayer is first loaded (when the first RealMedia
cast member is encountered in the Score or with the first Lingo reference to a RealMedia cast
member); any changes to this flag after RealPlayer is loaded are ignored. This flag should be
executed in a
prepareMovie event handler in a movie script. This flag is set for the entire session
(from the time the Shockwave Player is launched until it is closed and relaunched), not just for
the duration of the current movie.
By default, this flag is set to
FALSE and audio is processed by Director, which allows you to set the
soundChannel property and use the standard Lingo sound methods and properties to manipulate
the audio stream of a RealMedia sprite, including mixing RealAudio with other Director audio. If
this flag is set to
TRUE, Lingo control of the sound channel is not processed, and the sound is
handled by RealPlayer.
Parameters
None.