A standard "event broker" way of handling this is to have a single handler which then marshalls the result object off to delegates based on the object returned. So say a standard handler function like
handleWSResult() You register this as the result handler. Interested listeners register their interest in that result type ahead of time. Simply store the registrations inside a hash map or an associative array. The handle WSResult() function simply determines the returned object type, and forwards the object to specific handlers who registered their interest in that object. This delegating handler model is resonably common and in the "player" model is works pretty well. (It struggles in a more concurrent model like Swing but...) There are feameworks that specialize in event delegation and controlling, I just personally like keeping simple problems simple. -- Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, knly browne <[EMAIL PROTECTED]> wrote: > > Good day all.. > I was just wondering if it is possible to attach an event handler to a > web-service result Event so that the results can be handled from anywhere in > the application and not be specifically tied... to the service... > > for example result="doSomething(event.result)" > While this still works. If you have multiple parts of u're application > wanting data from the same service how do i switch or attach a result > handler without declearing another web-service object.. > > This is the Current Problem i face... Anyone that could share some light on > this issue will be greatly appreciated.. > > -- > Kenlie Browne > Software Developer > ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/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/