this pointer in a component gives me Implicit coercion of a value of type Class...
...to an unrelated type
I have an AS class that takes an instance to a component in its ctor. And I'm creating the class in my component. So in the mx:Script part of this component I have:
Code:
public var ASinstance = new ASinstance(this);
I can understand why it doesn't like "this", it's an AS thing. So how do I pass the instance of my component to the ctor if not with "this"?