Noobish logic question/problem

Just doing some programming in AS3 classes trying to make a mouseClickHandler but I can’t seem to get it working.

This is my code for my mousehandling class…

[SIZE=“3”]package ui{
import flash.display.DisplayObject;
public class MouseHandler {
private var mouseD:Boolean = false;
private var rollO:Boolean = false;
private var completeD:Boolean = false;
private var completeO:Boolean = false;
public function MouseHandler(target:DisplayObject) {
target.addEventListener(MouseEvent.MOUSE_DOWN, down);
target.addEventListener(MouseEvent.MOUSE_UP, up);
target.addEventListener(MouseEvent.ROLL_OVER, over);
target.addEventListener(MouseEvent.ROLL_OUT, out);
public function isDown() {
if (!completeD) {
completeD = true;
return mouseD;
} else {
return false;
public function isOver() {
if (!completeO) {
completeO = true;
return rollO;
} else {
return false;
private function down(event:MouseEvent) {
mouseD = true;
private function up(event:MouseEvent) {
mouseD = false;
completeD = false;
private function over(event:MouseEvent) {
rollO = true;
private function out(event:MouseEvent) {
rollO = false;
completeO = false;

For some reason completeD always seems to evaluate to true whether I’m clicking or not so there is no response. Just wondering if anyone can point out where I’m going wrong?

In theory it should work but nevermind.
Thanks in advance for helping.