No dice.  I do see the eventPhase equal to 1 (capture), but the
stopPropagation() and stopImmediatePropagation() still do not
prevent the DELETE from being processed.  I'm beginning to think I'm
just going about this the wrong way.  There has to be a way to do
this.

I'd love to see what's going in under the covers.  Is the source
code for the flash namespaces available.  I looked through the mx
namespaces, but the bulk of what I'm interested in is in the flash
namespaces.

--- In flexcoders@yahoogroups.com, "Michael Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> Jeremy,
>
> If that works... props to you man! ;-)
>
> Peace, Mike
>
> On 5/18/06, jeremy lu <[EMAIL PROTECTED]> wrote:
> >
> >
> > write this off top my head,
> > but there are two phases for event, one is capturing phase, the
other
> > bubbling phase.
> >
> > I guess what you need to do is like this:
> >
> > Application.application.addEventListener("keyDown", onKeyDown,
true);
> >
> > setting third param to true will switch to capture phase, then
you get the
> > chance to do :
> >
> > keyEvent.stopPropagation()
> > keyEvent.stopImmediatePropagation()
> >
> > as Michael suggested, this will prevent keyDown event from being
picked up
> > by underlying components.
> >
> > see if that works.
> >
> >
> > On 5/19/06, Michael Schmalle <[EMAIL PROTECTED]> wrote:
> > >
> > >  Ah,
> > >
> > > I got ya. Yeah, I know I read somwhere in the docs about this
issue. I
> > > can't remeber if it pertains to your particular problem.
> > > EDIT - I looked and now REALLY understand you.
> > >
> > > As far as I know, IE delete, there is no way as of yet.
> > >
> > > ... But don't take my word for it ;-)
> > >
> > > I don't think there is a way to do what you want, AS seems to
be one
> > > layer to high for that interaction other than like you said,
make the
> > > behavior cancelable..
> > >
> > > Never know for the future though, they might be listening. :)
> > >
> > > Peace, Mike
> > >
> > > On 5/18/06, Steven Toth < [EMAIL PROTECTED]> wrote:
> > >
> > > >  Thanks for the feedback, but that does not do the trick. 
The event
> > > > is not cancelable, so I cannot prevent the keystrokes.  For
example,
> > > > I'm using a TextInput control.  I can handle the textInput
event and
> > > > cancel it (not allow the new text to be input) using the
> > > > prevenDefault() method.  However, the keyDown and keyUp
events are
> > > > not cancelable.  Hence I cannot prevent my user from
deleting text
> > > > from the control via the DELETE key.  The stopPropagation()
and
> > > > stopImmediatePropagation() method do not work since the
event has
> > > > already been processed and the text deleted by the time it
gets to
> > > > the keyDown and keyUp events.  It seems that there must be
someway
> > > > to be able to reject or respond in a custom way to
keyDown/keyUp
> > > > events???
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com, "Michael Schmalle"
> > > >
> > > > <teoti.graphix@> wrote:
> > > > >
> > > > > Hi,
> > > > >
> > > > > Well, looking at how Adobe did somethings, I would say you
could
> > > > either
> > > > > write a filter loop that executes in the keyDown handler
or just
> > > > hard code
> > > > > the keys you want to reject.
> > > > >
> > > > > I don't know if this helps you but, there is;
> > > > >
> > > > > keyEvent.stopPropagation()
> > > > > keyEvent.stopImmediatePropagation()
> > > > >
> > > > > See the docs for the lengthy definition of those methods.
> > > > >
> > > > > Being email and all it sounds like you just need to do
alittle
> > > > ditch digging
> > > > > ;-) IE put in an if statement with logical || .
> > > > >
> > > > > Peace, Mike
> > > > >
> > > > > On 5/18/06, Steven Toth <steventoth@> wrote:
> > > > > >
> > > > > > I'm trying to write a custom control and I need to be
able to
> > > > reject
> > > > > > certain keystrokes.  I'm able to add listeners for the
> > > > KeyBoardEvent,
> > > > > > but they are not cancelable.  I don't see anywhere in
the object
> > > > > > heirarchy that they are.  I'm probably missing something
since
> > > > I'm
> > > > > > approaching this from a perspective of developing similar
> > > > controls
> > > > > > in .NET and Java.  Is handling the KeyboardEvent the
correct way
> > > > to do
> > > > > > this?  If so, how do I handle the event so that I can
cancel
> > > > it?  If
> > > > > > not, what should I be doing so I can reject certain
keystrokes?
> > > > > > Thanks.
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >  --
> > > > > > Flexcoders Mailing List
> > > > > > FAQ:
> > > >
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > > > > Search Archives: http://www.mail-archive.com/flexcoders%
<http://www.mail-archive.com/flexcoders%25>
> > > > 40yahoogroups.com
> > > > > >
> > > > > >
> > > > > >
> > > > > >  SPONSORED LINKS
> > > > > >   Web site design
development<http://groups.yahoo.com/gads?
> > > >
t=ms&k=Web+site+design+development&w1=Web+site+design+development&w2=
> > > >
Computer+software+development&w3=Software+design+and+development&w4=M
> > > >
acromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=L
> > > > -4QTvxB_quFDtMyhrQaHQ>  Computer
> > > > > > software development<http://groups.yahoo.com/gads?
> > > >
t=ms&k=Computer+software+development&w1=Web+site+design+development&w
> > > >
2=Computer+software+development&w3=Software+design+and+development&w4
> > > >
=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig
> > > > =lvQjSRfQDfWudJSe1lLjHw>  Software
> > > > > > design and development<http://groups.yahoo.com/gads?
> > > >
t=ms&k=Software+design+and+development&w1=Web+site+design+development
> > > >
&w2=Computer+software+development&w3=Software+design+and+development&
> > > >
w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.s
> > > > ig=1pMBCdo3DsJbuU9AEmO1oQ>   Macromedia
> > > > > > flex<http://groups.yahoo.com/gads?
> > > >
t=ms&k=Macromedia+flex&w1=Web+site+design+development&w2=Computer+sof
> > > >
tware+development&w3=Software+design+and+development&w4=Macromedia+fl
> > > >
ex&w5=Software+development+best+practice&c=5&s=166&.sig=OO6nPIrz7_EpZ
> > > > I36cYzBjw>  Software
> > > > > > development best practice<http://groups.yahoo.com/gads?
> > > >
t=ms&k=Software+development+best+practice&w1=Web+site+design+developm
> > > >
ent&w2=Computer+software+development&w3=Software+design+and+developme
> > > >
nt&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166
> > > > &.sig=f89quyyulIDsnABLD6IXIw>
> > > > > >  ------------------------------
> > > >
> > > > > > YAHOO! GROUPS LINKS
> > > > > >
> > > > > >
> > > > > >    -  Visit your
> > > > group "flexcoders<http://groups.yahoo.com/group/flexcoders>"
> > > >
> > > > > >    on the web.
> > > > > >
> > > > > >    -  To unsubscribe from this group, send an email to:
> > > > > >     [EMAIL PROTECTED]<flexcoders-
> > > > [EMAIL PROTECTED]>
> > > > > >
> > > > > >    -  Your use of Yahoo! Groups is subject to the Yahoo!
Terms of
> > > > > >    Service <http://docs.yahoo.com/info/terms/>.
> > > > > >
> > > > > >
> > > > > >  ------------------------------
> > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > What goes up, does come down.
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >  --
> > > > Flexcoders Mailing List
> > > > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > > Search Archives:
> > > > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > > >
> > > >
> > > >
> > > >  SPONSORED LINKS
> > > >    Web site design development<http://groups.yahoo.com/gads?
t=ms&k=Web+site+design+development&w1=Web+site+design+development&w2=
Computer+software+development&w3=Software+design+and+development&w4=M
acromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=L
-4QTvxB_quFDtMyhrQaHQ> Computer software
development<http://groups.yahoo.com/gads?
t=ms&k=Computer+software+development&w1=Web+site+design+development&w
2=Computer+software+development&w3=Software+design+and+development&w4
=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig
=lvQjSRfQDfWudJSe1lLjHw>  Software
> > > > design and development<http://groups.yahoo.com/gads?
t=ms&k=Software+design+and+development&w1=Web+site+design+development
&w2=Computer+software+development&w3=Software+design+and+development&
w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.s
ig=1pMBCdo3DsJbuU9AEmO1oQ>  Macromedia
flex<http://groups.yahoo.com/gads?
t=ms&k=Macromedia+flex&w1=Web+site+design+development&w2=Computer+sof
tware+development&w3=Software+design+and+development&w4=Macromedia+fl
ex&w5=Software+development+best+practice&c=5&s=166&.sig=OO6nPIrz7_EpZ
I36cYzBjw>  Software
> > > > development best practice<http://groups.yahoo.com/gads?
t=ms&k=Software+development+best+practice&w1=Web+site+design+developm
ent&w2=Computer+software+development&w3=Software+design+and+developme
nt&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166
&.sig=f89quyyulIDsnABLD6IXIw>
> > > >  ------------------------------
> > > > YAHOO! GROUPS LINKS
> > > >
> > > >
> > > >    -  Visit your
group "flexcoders<http://groups.yahoo.com/group/flexcoders>"
> > > >    on the web.
> > > >
> > > >
> > > >   To unsubscribe from this group, send an email to:
> > > >   [EMAIL PROTECTED]<flexcoders-
[EMAIL PROTECTED]>
> > > >
> > > >  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service<http://docs.yahoo.com/info/terms/>
> > > > .
> > > >  ------------------------------
> > > >
> > >
> > >
> > >
> > > --
> > > What goes up, does come down.
> > >
> > >  --
> > >
> > > Flexcoders Mailing List
> > > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives:
> > > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > >
> > >
> > >
> > >
> > >  SPONSORED LINKS
> > >    Web site design development<http://groups.yahoo.com/gads?
t=ms&k=Web+site+design+development&w1=Web+site+design+development&w2=
Computer+software+development&w3=Software+design+and+development&w4=M
acromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=L
-4QTvxB_quFDtMyhrQaHQ> Computer software
development<http://groups.yahoo.com/gads?
t=ms&k=Computer+software+development&w1=Web+site+design+development&w
2=Computer+software+development&w3=Software+design+and+development&w4
=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig
=lvQjSRfQDfWudJSe1lLjHw>  Software
> > > design and development<http://groups.yahoo.com/gads?
t=ms&k=Software+design+and+development&w1=Web+site+design+development
&w2=Computer+software+development&w3=Software+design+and+development&
w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.s
ig=1pMBCdo3DsJbuU9AEmO1oQ>  Macromedia
flex<http://groups.yahoo.com/gads?
t=ms&k=Macromedia+flex&w1=Web+site+design+development&w2=Computer+sof
tware+development&w3=Software+design+and+development&w4=Macromedia+fl
ex&w5=Software+development+best+practice&c=5&s=166&.sig=OO6nPIrz7_EpZ
I36cYzBjw>  Software
> > > development best practice<http://groups.yahoo.com/gads?
t=ms&k=Software+development+best+practice&w1=Web+site+design+developm
ent&w2=Computer+software+development&w3=Software+design+and+developme
nt&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166
&.sig=f89quyyulIDsnABLD6IXIw>
> > >  ------------------------------
> > > YAHOO! GROUPS LINKS
> > >
> > >
> > >    -  Visit your
group "flexcoders<http://groups.yahoo.com/group/flexcoders>"
> > >    on the web.
> > >
> > >
> > >   To unsubscribe from this group, send an email to:
> > >   [EMAIL PROTECTED]<flexcoders-
[EMAIL PROTECTED]>
> > >
> > >  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service<http://docs.yahoo.com/info/terms/>
> > > .
> > >  ------------------------------
> > >
> >
> >
> >
> >  --
> > Flexcoders Mailing List
> > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com
> >
> >
> >
> >  SPONSORED LINKS
> >   Web site design development<http://groups.yahoo.com/gads?
t=ms&k=Web+site+design+development&w1=Web+site+design+development&w2=
Computer+software+development&w3=Software+design+and+development&w4=M
acromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=L
-4QTvxB_quFDtMyhrQaHQ>  Computer
> > software development<http://groups.yahoo.com/gads?
t=ms&k=Computer+software+development&w1=Web+site+design+development&w
2=Computer+software+development&w3=Software+design+and+development&w4
=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig
=lvQjSRfQDfWudJSe1lLjHw>  Software
> > design and development<http://groups.yahoo.com/gads?
t=ms&k=Software+design+and+development&w1=Web+site+design+development
&w2=Computer+software+development&w3=Software+design+and+development&
w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.s
ig=1pMBCdo3DsJbuU9AEmO1oQ>   Macromedia
> > flex<http://groups.yahoo.com/gads?
t=ms&k=Macromedia+flex&w1=Web+site+design+development&w2=Computer+sof
tware+development&w3=Software+design+and+development&w4=Macromedia+fl
ex&w5=Software+development+best+practice&c=5&s=166&.sig=OO6nPIrz7_EpZ
I36cYzBjw>  Software
> > development best practice<http://groups.yahoo.com/gads?
t=ms&k=Software+development+best+practice&w1=Web+site+design+developm
ent&w2=Computer+software+development&w3=Software+design+and+developme
nt&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166
&.sig=f89quyyulIDsnABLD6IXIw>
> >  ------------------------------
> > YAHOO! GROUPS LINKS
> >
> >
> >    -  Visit your
group "flexcoders<http://groups.yahoo.com/group/flexcoders>"
> >    on the web.
> >
> >    -  To unsubscribe from this group, send an email to:
> >     [EMAIL PROTECTED]<flexcoders-
[EMAIL PROTECTED]>
> >
> >    -  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> >    Service <http://docs.yahoo.com/info/terms/>.
> >
> >
> >  ------------------------------
> >
>
>
>
> --
> What goes up, does come down.
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to