You can make any connection between objects. The following explains certain key connections that can be made.
Only two connections are necessary. First, connect the player attribute of any button or button block to the self attribute of the audio wave player or digital video player. When this connection exists, the button can communicate with the player and take action when a button is pressed.
Next, connect the stateChanged event of the player to the setEmphasis action of the buttons. This enables and disables the buttons based on the state of the player. This connection is optional but gives your application a common look and feel.