# Help With Boolean And Broadcasting

**URL:** <https://forum.kirupa.com/t/help-with-boolean-and-broadcasting/244366>\
**Category:** flash\
**Created:** [November 16, 2007, 8:21pm UTC](https://forum.kirupa.com/t/help-with-boolean-and-broadcasting/244366 "2007-11-16T20:21:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![theuprock](https://avatars.discourse-cdn.com/v4/letter/t/e5b9ba/32.png) [@theuprock](https://forum.kirupa.com/u/theuprock)\
**Post date:** [November 16, 2007, 8:21pm UTC](https://forum.kirupa.com/t/help-with-boolean-and-broadcasting/244366/1 "2007-11-16T20:21:17Z")

</div>

I’ve got my buttons worked out finally to react correctly on clicks, now I want to send what I think should be a global call to the movie’s maintime to let it know that the audio clip is either paused or player, via a Boolean expression. I’m wondering what my error is here.

```auto

// Controls The Play/Pause Button's State On The Main Timeline
// Boolean Conditions ---> Playing = True; Paused = False

var playStatus = playerStatus:Boolean;

clicker.addEventListener(MouseEvent.CLICK, onClick);

function onClick(event:MouseEvent):void {
	controller.play();
	if (controller.currentFrame != 1) {
		playerStatus = true;
	}
	else {
		playerStatus = false;
		trace(" **** is paused, dude.");
	}
}

```

Hopefully someone can lend some insight. Thanks.
