Why doesn't this work?
function a(event:MouseEvent):void
{
while(MouseEvent.MOUSE_DOWN == true)
{
trace("the mouse is down.");
}
}
stage.addEventListener(MouseEvent.MOUSE_DOWN, a);
It would be nice if action script had a boolean value set if the mouse button was up or down and would set a value to true or false that could be called
for example if the mouse button is down then mouseDown would be set to true else it would be set to false same thing for mouseUp.
Also it would be nice if we could make conditional statements inside of event listeners for conditionally calling a function based off events
var i:int;
i = 0;
stage.addEventListener(MouseEvent.CLICK, if(i == 0) { a});
