[flexcoders] how to call a function from a component to another

2009-10-12 Thread quantum_ohm
Hi All !

I'd like to call a function x() which is in a component X.mxml, from  a 
function y() which is in another component Y.mxml...

(As my components are called several times in different states I can't assign 
them any id : so this.parentApplication doesn't fit)

How to do this ?

Thx for help.



Re: [flexcoders] how to call a function from a component to another

2009-10-12 Thread Clint Tredway
best way is to broadcast an event and have the listener call the function
you need.

On Mon, Oct 12, 2009 at 9:00 AM, quantum_ohm charly.anto...@laposte.netwrote:



 Hi All !

 I'd like to call a function x() which is in a component X.mxml, from a
 function y() which is in another component Y.mxml...

 (As my components are called several times in different states I can't
 assign them any id : so this.parentApplication doesn't fit)

 How to do this ?

 Thx for help.

  




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