On 03/04/2010, Mike Chang <[email protected]> wrote:

> I noticed in many examples on the web handler functions mostly have a
> parameter event, even though the event isn't used (such as even.target). I'm
> wondering if there's a reason for this convention.

I'd say it's up to you, but if you subscribe to the event using ActionScript,
not the mxml handler sugar, then you'll always get the event.

> I have to pass a null in case it isn't triggered by the event, which seems
> pretty cumbersome.

Perhaps you could use defaults in the handler, something like

    login_clickHandler(event:MouseEvent = null)

Gabriel

-- 
gabriel montagné láscaris comneno
http://rojored.com
+44 (0) 7500 709 209

Reply via email to