Well, ok, but components are not in "directories". The components source code may exist anywhere as long as the compiler can find it. Once compiled, the components exist in a hierarchical structure defined by the mxml code, and that is entirely unrelated to the locations of the source code.
There are several ways to pass data between components, and it is slightly different depending on whether the component is a pop-up, is loaded by mx:Loader or mx:Image, or is declared in mxml. It is also different depending on which way you want to pass the data, parent to child or child to parent. It also depends oh whether you intend to bind a control to the data. Since you mention pop-ups, see this link for a full example. http://www.cflex.net/showfiledetails.cfm?ObjectID=197 Tracy -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of rgwilson26 Sent: Tuesday, October 18, 2005 8:33 AM To: [email protected] Subject: [flexcoders] Re: How to reference a child component I would like to know how to send data between a component in one directory, and another component in a sub directory. For example: If the file structure is set as such.. Main > /Comp_Level_1 > /Comp_Level_2 how would you send data between Comp_Level_1 and Comp_Level_2 if Comp_Level_1 is a component in Main and Comp_Level_2 is a pop up window that is being called from Comp_Level_1. I want to get an idea how to call components that area several levels deep in the directory structure. Thanks --- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > Your subject seemed clear enough, but I am having a little difficulty > with your message terminology, specifically, your use of the words > "call", "directory", "appear", "originates" and "namespace" in this > context. > > Will you restate your question? > > Tracy > > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of rgwilson26 > Sent: Monday, October 17, 2005 3:00 PM > To: [email protected] > Subject: [flexcoders] How to reference a child component > > How would i make a call from (Comp_Level_1) to (Comp_Level_2) one level > down in a directory? I want to make a pop-up window appear in > Comp_Level_1 that originates from Comp_Level_2. > > Main > /Comp_Level_1 > /Comp_Level_2 > > If (Main) creates a namespace for (Comp_Level_1) and (Comp_Level_2). Is > there a way for components to references one another, or do you have to > referr back to (Main) in order to get to (Comp_Level_2)? > > > > > > > > > > -- > 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 > -- 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 ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- 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/ <*> 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/

