I'm trying to load a RSL library into a flash animation developed with Flash CS5 IDE, that extends a custom class and implements an interface. I have reduced the problem to the simplest setup and find that I can have my main class extend another class or implement an interface, but not do both at the same time if I want to load an RSL.
I have a very simple class to extend:
import flash.display.Sprite;
public class MySprite extends Sprite
{
public function MySprite()
{
}
}
The main class with TestSymbol which is a symbol from the RSL library:
import flash.display.Sprite;
public class MainApp extends MySprite implements ITest
{
public var bug:TestSymbol = new TestSymbol();
public function MainApp()
{
addChild(bug);
}
//To meet interface requirements
public function test():void {
}
}
}
and a very simple interface
public interface ITest
{
function test():void
}
The RSL library is a very simple one too - just one symbol with a square drawing. It is specified in the actionscript settings. Everything runs well if I change the MainApp class to:
public class MainApp extends MySprite
or
public class MainApp extends Sprite implements ITest
but if I want both I get the VerifyError: Error #1014 with MySprite not found and ReferenceError: Error #1065.
Any ideas?