User Guide

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.