Lingo Dictionary > O-R > pause member

 

pause member

Syntax

member(whichCastMember). pause()
pause member ("whichCastMember")

Description

Command; pauses the streaming of a Shockwave Audio (SWA) streaming cast member. When the sound is paused, the state member property equals 4. The portion of the sound that has already been downloaded and is available will continue to play until the cache runs out.

Example

This handler could be used for a Play or Pause button. If the sound is playing, the handler pauses the sound; otherwise, the handler plays the sound linked to the SWA streaming cast member soundSWA.

on mouseDown  
	whatState = member("soundSWA").state
	if whatState = 3 then
		member("soundSWA").pause()
	else 
		member("soundSWA").play()
	end if
end 

See also

play member, stop member