Lingo Dictionary > O-R > percentStreamed

 

percentStreamed

Syntax

member(whichCastMember).percentStreamed
the percentStreamed of member whichCastMember

Description

Shockwave Audio (SWA) cast member property; for SWA streaming sounds, gets the percent of an SWA file already streamed from an HTTP or FTP server; or for Flash movie cast memebers, gets the percent of a Flash movie that has streamed into memory. This property is a value from 0 to 100%.

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. 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

Example

This frame script keeps the playback head looping in the current frame so long as less than 60 percent of a Flash movie called Splash Screen has streamed into memory:

on exitFrame
	if member("Splash Screen").percentStreamed < 60 then
		go to the frame
	end if
end 

See also

percentPlayed