Unfortunately, 'textInput' doesn't get dispatched before a deletion
occurs. But  'change' gets dispatched after a deletion has occurred.
 
Gordon Smith
Adobe Flex SDK Team

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of marty.pitt
Sent: Thursday, February 14, 2008 3:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Is the TextArea / TextField TEXT_INPUT event
firing correctly?



Also, it seems that changing the listener to listen for the
undocumented 'textChanged' event gets the desired behaviour.

Maybe it's just that the docs need updating?

Cheers

Marty

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "marty.pitt" <[EMAIL PROTECTED]> wrote:
>
> Hi
> 
> Can someone please verify my understanding of this correctly.
> 
> I believe that the event is not firing on the deletion of text, as the
> docs suggest it will.
> 
> According to the docs this event is supposed to fire:
> "when the user types, deletes, or pastes text into the control. "
> 
> 
> But, running the following simple chunk'o'code, and deleting text,
> shows the event doesn't fire on either backspace or delete:
> 
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> "
> layout="absolute">
> <mx:TextArea textInput="trace('textInput fired')" />
> </mx:Application>
> 
> I had a look at the code, and TextArea is simply rebroadcasting the
> event from textField, which we can't see as it's source is not
available.
> 
> If someone can confirm that this is a bug, I'll post it in the bug
> forums. (I don't suppose that it'll be fixed before release now
though?)
> 
> Cheers
> 
> Marty
>



 

Reply via email to