User Guide

Lingo Dictionary 79
attributeValue
Syntax
XMLnode.attributeValue[ attributeNameOrNumber ]
Description
XML property; returns the value of the specified child node of a parsed XML document.
Example
Beginning with the following XML:
<?xml version="1.0"?>
<e1>
<tagName attr1="val1" attr2="val2"/>
<e2>element 2</e2>
<e3>element 3</e3>
here is some text
</e1>
This Lingo returns the value of the first attribute of the tag called tagName:
put gParserObject.child[1].child[1].attributeValue[1]
-- "val1"
See also
attributeName
audio (RealMedia)
Syntax
sprite(whichSprite).audio
member(whichCastmember).audio
Description
RealMedia sprite or cast member property; allows you to play (TRUE) or mute (FALSE) the audio
in the RealMedia stream. The default setting for this property is
TRUE (1). Integer values other
than 1 or 0 are treated as TRUE (1). Setting this property has no effect if the
realPlayerNativeAudio() function is set to TRUE.
If the audio property is set to FALSE when a RealMedia cast member starts playing, a sound
channel is still allocated, which allows you to toggle the sound on and off during playback.
There may be some latency involved in setting this property, which means there may be a slight
delay before the sound toggles on or off.
Examples
The following examples show that the audio properties for sprite 2 and the cast member Real is
set to
TRUE, which means that the audio portion of the RealMedia stream will be played.
put sprite(2).audio
-- 1
put member("Real").audio
-- 1