Hi Oleg,

Thanks for the reply... I think it's important too but can't understand why
the DateField Class in the Flex SDK doesn't do it?

Digging a little deeper... Here's the Constructor of the DateField...

/**
 *  Constructor.
 */
public function DateField()
{
  super();
  addEventListener(Event.REMOVED_FROM_STAGE, removedFromStageHandler);
}


The removedFromStageHandler() function, seems to be doing some clean ups, so
I guess that's kind of like it's .dispose() method.


Nick




On 2 June 2010 12:44, Oleg Sivokon <[email protected]> wrote:

>
>
> If you are adding handlers to events dispatched by the objects that are
> going to be removed along with the listener, then why not? However, it is
> true that Flex components have no dispose() or similar methods.
>

Reply via email to