Multiple Inheritance in ActionScript 3? Is it possible? I have read somewhere that it is possible in as3.
If yes then how?
this is my Doucument Class A.as
<
You can do the multiple inheritance using the interface.
Just check code as per your requirement: package { import flash.display.MovieClip; public class A extends MovieClip implements B { public var value1:Number=10; public function A() { trace("A Class Constructor"); } public function hit():void { trace(value1+' from hit'); } public function print():void { trace("Print Method Called"); } } } package { public interface B extends D { function hit():void; } } package { public class C implements D { pulic function C() { trace("C Class Constructor"); } public function print():void { trace("Print Method Called"); } } } package { public interface D { function print():void; } }