Hi Yishay, El mar., 30 abr. 2019 a las 13:27, Yishay Weiss (<yishayj...@hotmail.com>) escribió:
> It seems to me this is more an AS3 issue than a Royale issue. It would be > cool to enhance AS to include features such as Mixins, but as long as we > have a simple single inheritance model the solution you implemented is > probably optimal. > > If you and others think is the best we can get, maybe we can left as is. Maybe we can just optimize as Andrew said making that a class to be implemented by the rest of classes, in that way all share that and changing just one class will change the 3 implementors at once... > Also, in my opinion you should always check to see if a said object > implements an interface, rather than extends a class. If you stick to that > your solution works fine. > > the problem with this is what I stated before. I expect users to use UIBase/StyledUIBase classes instead or interface in this class of context. And the problem in this case is that we can't generalize a code since not all components will be "StyledUIBase". For me this is the most serious problem -- Carlos Rovira http://about.me/carlosrovira