Actually, you weren't wrong.  It seems that if you use [Bindable], the compiler 
will allow dispatchEvent() in any class; in a black-box manner.

-TH

--- In [email protected], "valdhor" <valdhorli...@...> wrote:
>
> Ooops, my bad.
> 
> I didn't look at the example extensively and didn't note which component he 
> was trying to use.
> 
> --- In [email protected], "turbo_vb" <TimHoff@> wrote:
> >
> > Hey Steve,
> > 
> > The component that Marco is referring to is not a UIComponent, so it 
> > doesn't have a dispatchEvent() method.  He'll have to change thel class to 
> > extend EventDispatcher.
> > 
> > -TH
> > 
> > --- In [email protected], "valdhor" <valdhorlists@> wrote:
> > >
> > > The component itself has a dispatchEvent method. The this keyword is 
> > > implicit in the call. It could have been written as this.dispatchEvent.
> > > 
> > > --- In [email protected], Marco Catunda <marco.catunda@> wrote:
> > > >
> > > > Hi,
> > > > 
> > > > I'm learning swiz framework and stumble upon this code 
> > > > http://www.pastebin.org/307313
> > > > at 
> > > > http://www.briankotek.com/blog/files/swiz_10_rc_example/srcview/index.html
> > > >  
> > > > 
> > > > My question is how could flex compiler understand the 'dispatchEvent' 
> > > > method in
> > > > line 41 and 65? I haven't seen any explicit import of it.
> > > > 
> > > > Cheers
> > > > 
> > > > --
> > > > Marco Catunda
> > > >
> > >
> >
>


Reply via email to