In the project I'm working on, users can compile their own SWFs that can then be loaded into the application, and the application will be able to call methods on instances of a class definition grabbed from the SWF. The class must implement an interface (say A), which is available in the source code of the application as well.
Loading the SWF is fine, and so is the instantiation of the remote class, but when I try and cast it to interface A then it fails (type conversion error), even though all the methods of A are defined. How do I make sure that it is casted to the interface? I don't want to have to deal with Objects all the time, and using the "as" cast fails.
Slint approves of me! | "This is Newgrounds.com, not Disney.com" - WadeFulp
"Sit look rub panda" - Alan Davies