User Guide

526
rawNew()
Syntax
parentScript.rawNew()
rawNew(parentScript)
Description
Function; creates a child object from a parent script without calling its on new handler. This allows
a movie to create child objects without initializing the properties of those child objects. This is
particularly useful when you want to create large numbers of child objects for later use. To
initialize the properties of one of these raw child objects, call its
on new handler.
Examples
This statement creates a child object called RedCar from the parent script CarParentScript
without initializing its properties:
RedCar = script("CarParentScript").rawNew()
This statement initializes the properties of the child object RedCar:
RedCar.new()
See also
new(), script
realPlayerNativeAudio()
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 (RealMedia) 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. For more information about working with RealAudio, see
“Using RealMedia content in Director” in Using Director. For more information about working
with Director audio, see the sound methods and properties in the main Lingo Dictionary.