inside an init function or similar just add something like this:
this.addEventListener(EVENT,function)

then in your X component just dispatch a custom event that the Y component
is listening for

On Mon, Oct 12, 2009 at 9:24 AM, quantum_ohm <[email protected]>wrote:

>
>
> Thx.
> But as I have no id on the components, I don't see how to add a listener on
> the Y.mxml or even in the Main.as that I have ?
>
>
> --- In [email protected] <flexcoders%40yahoogroups.com>, Clint
> Tredway <grum...@...> wrote:
> >
> > best way is to broadcast an event and have the listener call the function
> > you need.
> >
> > "When you choose hope, anything is possible."
> > -Christopher Reeve
> >
>
>  
>



-- 
“When you choose hope, anything is possible.”
-Christopher Reeve

Reply via email to