flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Mclean <jus...@classsoftware.com>
Subject Re: git commit: [flex-asjs] [refs/heads/develop] - Add FileUploaderWithResponseData
Date Sat, 15 Jul 2017 00:17:56 GMT
Hi,

You may want to look into using the decorator pattern [1]. It's a nice way of adding one or
more pieces of functionality to a class without using inheritance. Here’s an AS example
i did ages ago [2] for a state machine that you can add logging or event dispatching or both
to.

Thanks,
Justin

1. https://en.wikipedia.org/wiki/Decorator_pattern
2. https://github.com/justinmclean/ActionScript-State-Machine/tree/master/src/com/classsoftware/statemachine
Mime
View raw message