huh!? well how about that! :)
ty
On 5/6/07, Daniel Freiman <[EMAIL PROTECTED]> wrote:
public function mouseMoveHandler(event:MouseEvent):void
{
if (dragManager.target!=this) {
return;
}
// do stuff
}
Daniel Freiman
nondocs <http://nondocs.blogspot.com>
On 5/6/07, dorkie dork from dorktown < [EMAIL PROTECTED]>
wrote:
>
> 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
> }
>
>
>