percentStreamed (3D)
919
Example
The following examples show that 56% of the RealMedia stream in sprite 2 and the cast member
Real has been buffered.
-- Lingo syntax
put(sprite(2).percentBuffered) -- 56
put(member("Real").percentBuffered) -- 56
// JavaScript syntax
put(sprite(2).percentBuffered); // 56
put(member("Real").percentBuffered); // 56
See also
mediaStatus (RealMedia, Windows Media)
,
pausedAtStart (RealMedia, Windows
Media)
,
state (RealMedia)
percentPlayed
Usage
member(
whichCastMember
).percentPlayed
the percentPlayed of member
whichCastMember
Description
Shockwave Audio (SWA) cast member property; returns the percentage of the specified SWA file
that has actually played.
This property can be tested only after the SWA sound starts playing or has been preloaded by
means of the
preLoadBuffer
command. This property cannot be set.
Example
This handler displays the percentage of the SWA streaming cast member Frank Sinatra that has
played and puts the value in the field cast member Percent Played:
on exitFrame
whatState = member("Frank Sinatra").state
if whatState > 1 AND whatState < 9 then
member("Percent Played").text = /
string(member("Frank Sinatra").percentPlayed)
end if
end
See also
percentStreamed (Member)
percentStreamed (3D)
Usage
member(
whichCastMember
).percentStreamed
Description
3D property; allows you to get the percentage of a 3D cast member that has been streamed. This
property refers to either the initial file import or to the last file load requested. The value returned
is an integer and has a range from 0 to 100. There is no default value for this property.
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...