Jeremy, That did the trick, thanks a lot!
--- In flexcoders@yahoogroups.com, "Jeremy Lu" <[EMAIL PROTECTED]> wrote: > > Surely it can. > > You can create a MyEvent class which extends Event then add in as many > properties you want (something like "data"), there's a fine example in the > manual about creating custom event. > > When you need to broadcast event from one component to another, just use: > > comp.dispatchEvent( MyEvent("someEvent", myDataObject) ); > > this should do the trick. > > > Jeremy. > > On 7/22/06, Michael <[EMAIL PROTECTED]> wrote: > > > > I have a Flex app with two custom components. What is the best way > > for these two components to talk to each other. Pass a reference of > > one component to the other, databinding, or event broadcast to each other? > > > > I basically have one component that is a list of ID/Names, when I > > double click, I want the other component to get the ID and retrieve > > the extended data from the DB. My data is not stored in the > > main.mxml application. I know in Flash you would use event > > listeners, but can the event listeners in Flex also send data? The > > examples I have seen broadcast a message, but they don't seem to send > > data like Flash dispatch events would. > > > > - Michael > > > > > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/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/