Thanks Mike But was wondering if you could ellaborate. What I am trying to do is to use the decorataor pattern to decorate Charts (or any other UI component for that matter), so that a user could select say chart data effects, chart filter types at runtime.
So I set upon using abstract/concrete decorators/decorated classes but I am struggling. Sounds like I am missing something obvious from your comments, so again I would appreciate any further comments or examples. Thanks again Duncan ----- Original Message ---- From: Michael Schmalle <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Tuesday, 5 June, 2007 1:14:58 AM Subject: Re: [flexcoders] AS3 decorator pattern examples Hi, Look at all of the collection classes, IE ArrayCollection. Are you talking about decorating UIComponents? There are many uses for decorators but none at all. :) That is a pattern that sometimes is not needed with UIComponents. I would suggest getting familiar with creating tight public interface types. Peace, Mike On 6/4/07, duncmcm < [EMAIL PROTECTED] co.uk> wrote: I've been reading Advanced AS3 with design patterns and wish to get my hands on an example of a decorator pattern in AS3. The one in this book I have tried but doesn't seem to work. Without initially posting my code has anyone out there got a tried and tested AS3 decorator pattern example I could look at? Thanks Duncan -- Teoti Graphix http://www.teotigra phix.com Blog - Flex2Components http://www.flex2com ponents.com You can find more by solving the problem then by 'asking the question'. ___________________________________________________________ Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html