Lingo Dictionary > O-R > playing

 

playing

Syntax

sprite(whichFlashSprite).playing
the playing of sprite whichFlashSprite

Description

Flash sprite property; indicates whether a Flash movie is playing (TRUE) or stopped (FALSE).

This property can be tested but not set.

Example

This frame script checks to see if the Flash movie sprite in channel 5 is playing and, if it is not, starts the movie:

on enterFrame
	if not sprite(5).playing then
		sprite(5).play()
	end if
end