----- Original Message ----- 
From: boy_trike
To: flexcoders@yahoogroups.com
Sent: Monday, September 25, 2006 9:44 PM
Subject: [flexcoders] How does a component communicate with the Application


> I am trying to build a modular application (that means, with a lot of 
> components). I have a lot
> of common code that I would like to include ONCE in the application and 
> make available to
> all of the components.

Isn't that what classes are for?

> My question is how do I have a component access a function /
> variable that is in the main application?

A better approach (to avoid having sphagetti code) would be to use events 
for inter-component/application communication rather than invoking functions 
directly. Your components will not be reusable otherwise.

Paul

>Thanks
>
>Bruce




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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to