You can cancel an event with myEvent.preventDefault(). This is often useful.
For example, KeyboardEvents are not cancelable, this is an important thing
to know when you override text inputs default behaviour.

Julien Nicoulaud
http://flex.aixo.fr

2009/7/22 postwick <[email protected]>

>
>
> Events propagate through the hierarchy of objects. If necessary, you can
> stop them (cancel them) once they get to a certain point in the propagation.
>
> http://livedocs.adobe.com/flex/3/html/help.html?content=events_08.html
>
> Specifically, the section on Bubbling answers your question.
>
>
> --- In [email protected] <flexcoders%40yahoogroups.com>,
> "markflex2007" <markflex2...@...> wrote:
> >
> > The format for Event constructor like this
> > Event(event_type:String, bubbles:Boolean, cancelable:Boolean)
> >
> > I do not understand what the "cancelable" used for and how to use it.
> >
> > Please give me a idea.
> >
> > Thanks
> >
> >
> > Mark
> >
>
>  
>

Reply via email to