# \[AS3\] Multiple inheritance

**URL:** <https://forum.kirupa.com/t/as3-multiple-inheritance/216045>\
**Category:** flash\
**Created:** [February 13, 2007, 8:14am UTC](https://forum.kirupa.com/t/as3-multiple-inheritance/216045 "2007-02-13T08:14:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![petsounds](https://avatars.discourse-cdn.com/v4/letter/p/f19dbf/32.png) [@petsounds](https://forum.kirupa.com/u/petsounds)\
**Post date:** [February 13, 2007, 8:14am UTC](https://forum.kirupa.com/t/as3-multiple-inheritance/216045/1 "2007-02-13T08:14:58Z")

</div>

Without being able to modify the prototype chain, is it possible to fake multiple inheritance in AS3?

Say I have three Window classes. One is a DraggableWindow, one is a ScalingWindow, and one is a BorderWindow.

I want to mix and match new subclasses at runtime without having to make tons of new permutations of Window subclass possibilities.

Sure, I can implement these behaviors of the Window class as interfaces, but I would still have to account for all the permutations of interface combinations.

Does anyone have an elegant solution to this? I looked at the Decorator pattern, but seems like that is only applicable when you want to add new functionality to existing methods.
