You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by mark goldin <ma...@gmail.com> on 2013/07/24 21:44:36 UTC
Spark textarea intercept each character
I need to run some code every time a user changes a text in TextArea
without leaving the control. Which event should I listen to?
Thanks
Re: Spark textarea intercept each character
Posted by OmPrakash Muppirala <bi...@gmail.com>.
On Wed, Jul 24, 2013 at 12:54 PM, Lee Burrows
<su...@leeburrows.com>wrote:
> TextEvent.TEXT_INPUT
The docs say that TEXT_INPUT is "Dispatched when a keystroke is about to be
input to the component. " That would be before the 'change' event, right?
>
>
>
>
> On 24/07/2013 20:44, mark goldin wrote:
>
>> I need to run some code every time a user changes a text in TextArea
>> without leaving the control. Which event should I listen to?
>>
>> Thanks
>>
>>
>
> --
> Lee Burrows
> ActionScripter
>
>
Re: Spark textarea intercept each character
Posted by mark goldin <ma...@gmail.com>.
It fires but the text is null.
On Wed, Jul 24, 2013 at 2:54 PM, Lee Burrows
<su...@leeburrows.com>wrote:
> TextEvent.TEXT_INPUT
>
>
>
>
> On 24/07/2013 20:44, mark goldin wrote:
>
>> I need to run some code every time a user changes a text in TextArea
>> without leaving the control. Which event should I listen to?
>>
>> Thanks
>>
>>
>
> --
> Lee Burrows
> ActionScripter
>
>
Re: Spark textarea intercept each character
Posted by Lee Burrows <su...@leeburrows.com>.
TextEvent.TEXT_INPUT
On 24/07/2013 20:44, mark goldin wrote:
> I need to run some code every time a user changes a text in TextArea
> without leaving the control. Which event should I listen to?
>
> Thanks
>
--
Lee Burrows
ActionScripter
Re: Spark textarea intercept each character
Posted by Jesse Ward-Karet <jw...@tanium.com>.
Pretty sure you want TextOperationEvent.CHANGE.
On Wed, Jul 24, 2013 at 1:02 PM, OmPrakash Muppirala
<bi...@gmail.com>wrote:
> keyUp and keyDown are a bit low level. You could use them as well
> depending on what you are doing.
>
> On Wed, Jul 24, 2013 at 1:01 PM, mark goldin <ma...@gmail.com>
> wrote:
>
> > It does not fire until I move out.
> >
> >
> > On Wed, Jul 24, 2013 at 2:47 PM, OmPrakash Muppirala
> > <bi...@gmail.com>wrote:
> >
> > > "change" would be a good one to listen to.
> > >
> > > On Wed, Jul 24, 2013 at 12:44 PM, mark goldin <ma...@gmail.com>
> > > wrote:
> > >
> > > > I need to run some code every time a user changes a text in TextArea
> > > > without leaving the control. Which event should I listen to?
> > > >
> > > > Thanks
> > > >
> > >
> >
>
Re: Spark textarea intercept each character
Posted by JP Bader <jp...@zavteq.com>.
Even though it's from Ad*be, the docs are still relevant:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/TextInput.html#eventSummary
Check there for the relevant events of the Spark TextInput control
or even:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/supportClasses/SkinnableTextBase.html#event:textInput
On Wed, Jul 24, 2013 at 3:02 PM, OmPrakash Muppirala
<bi...@gmail.com>wrote:
> keyUp and keyDown are a bit low level. You could use them as well
> depending on what you are doing.
>
> On Wed, Jul 24, 2013 at 1:01 PM, mark goldin <ma...@gmail.com>
> wrote:
>
> > It does not fire until I move out.
> >
> >
> > On Wed, Jul 24, 2013 at 2:47 PM, OmPrakash Muppirala
> > <bi...@gmail.com>wrote:
> >
> > > "change" would be a good one to listen to.
> > >
> > > On Wed, Jul 24, 2013 at 12:44 PM, mark goldin <ma...@gmail.com>
> > > wrote:
> > >
> > > > I need to run some code every time a user changes a text in TextArea
> > > > without leaving the control. Which event should I listen to?
> > > >
> > > > Thanks
> > > >
> > >
> >
>
--
JP Bader
Principal
Zavteq, Inc.
@lordB8r | jp@zavteq.com
608.692.2468
Re: Spark textarea intercept each character
Posted by OmPrakash Muppirala <bi...@gmail.com>.
keyUp and keyDown are a bit low level. You could use them as well
depending on what you are doing.
On Wed, Jul 24, 2013 at 1:01 PM, mark goldin <ma...@gmail.com> wrote:
> It does not fire until I move out.
>
>
> On Wed, Jul 24, 2013 at 2:47 PM, OmPrakash Muppirala
> <bi...@gmail.com>wrote:
>
> > "change" would be a good one to listen to.
> >
> > On Wed, Jul 24, 2013 at 12:44 PM, mark goldin <ma...@gmail.com>
> > wrote:
> >
> > > I need to run some code every time a user changes a text in TextArea
> > > without leaving the control. Which event should I listen to?
> > >
> > > Thanks
> > >
> >
>
Re: Spark textarea intercept each character
Posted by mark goldin <ma...@gmail.com>.
It does not fire until I move out.
On Wed, Jul 24, 2013 at 2:47 PM, OmPrakash Muppirala
<bi...@gmail.com>wrote:
> "change" would be a good one to listen to.
>
> On Wed, Jul 24, 2013 at 12:44 PM, mark goldin <ma...@gmail.com>
> wrote:
>
> > I need to run some code every time a user changes a text in TextArea
> > without leaving the control. Which event should I listen to?
> >
> > Thanks
> >
>
Re: Spark textarea intercept each character
Posted by OmPrakash Muppirala <bi...@gmail.com>.
"change" would be a good one to listen to.
On Wed, Jul 24, 2013 at 12:44 PM, mark goldin <ma...@gmail.com> wrote:
> I need to run some code every time a user changes a text in TextArea
> without leaving the control. Which event should I listen to?
>
> Thanks
>