Lingo Dictionary > O-R > percentPlayed |
![]() ![]() ![]() |
percentPlayed
Syntax
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
![]() ![]() ![]() |