User Guide
472
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
percentStreamed
Syntax
member(whichSWAorFlashCastMember).percentStreamed
the percentStreamed of member whichSWAorFlashCastMember
sprite(whichQuickTimeSprite).percentStreamed
Description
Shockwave Audio (SWA) and Flash cast member property, and QuickTime sprite property.
For SWA streaming sounds, gets the percent of a SWA file already streamed from an HTTP or FTP
server. For SWA, this property differs from the
percentPlayed property in that it includes the
amount of the file that has been buffered but not yet played. This property can be tested only after
the SWA sound starts playing or has been preloaded by means of the
preLoadBuffer command.
For Flash movie cast members, this property gets the percent of a Flash movie that has streamed
into memory.
For QuickTime sprites, this property gets the percent of the QuickTime file that has played.
This property can have a value from 0 to 100%. For a file on a local disk, the value is 100. For
files being streamed from the Internet, the
percentStreamed value increases as more bytes are
received. This property cannot be set.
Example
This example displays the percentage of the SWA streaming cast member Ray Charles that has
streamed and puts the value in a field:
on exitFrame
whatState = member("Ray Charles").state
if whatState > 1 AND whatState < 9 then
member("Percent Streamed Displayer").text = \
string(member("Ray Charles").percentStreamed)
end if
end