I think you'd have to rely on the fact that when the handler executes,
'this' is the instance that you want. So I suppose you could put code
inside handlers such as
if (!event)
{
Application.application.handlerInstance = this;
return;
}
and then call
function handlerToInstance(handler:Function):Object
{
handler(null);
return Application.application.handlerInstance;
}
Gordon Smith
Adobe Flex SDK Team
________________________________
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of reflexactions
Sent: Thursday, December 20, 2007 4:37 AM
To: [email protected]
Subject: [flexcomponents] Find instance for an event handler
If an event handler is actually a method of a component instance does
anyone know how to find which instance it is.
Actually I just want to check when a listener is being added that it is
from a particular object and not some other source.