play node


The play node triggers an audio clip to play. This action completes immediately (i.e. it doesn't wait for the audio to finish). This node is appropriate for small, incidental, audio clips only. For longer clips use the audio node.

For more information regarding the scripting of this node see the scripting reference entry for play.


This node cannot contain children.

Example B.6. Use of play node

	<object type="balloon.aro">
		<event type="onclickdown">
			<play filename="pop.wav"/>


play attributes
filenamefilenamethis attribute must be specifiedthe filename of the audio file to play

Attributes common to action nodes
timesinteger1the number of times to perform this action. Use -1 to repeat indefinitely

Attributes common to nodes
visiblebooleantrueIf false, this node (or its children, if it has any) will not be rendered.
colorr g b a (in range 0 to 1)1 1 1 1specifies the color used to modulate this node and its children
idstring an identifier used to refer to this node