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.
// 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.