is there a way to exit a function that does not return a value,
myfunction():void? if some condition is true i want to exit a function right
at the beginning *without* wrapping the whole block of code in another
indented if statement. i do not want to use return because i do not want to
return anything and the function is an event handler. see this function:

       public function mouseMoveHandler(event:MouseEvent):void
       {
           if (dragManager.target!=this) {
               exit; // <-- same as "return null" but without returning
anything.
           }
           // do stuff
       }

Reply via email to