This + extends + scope

I’m a bit at a lost with the scope of this when extending a class.

I have a method in Base

public function isDefinedProperty( prop:String ):Boolean {
            try {
                return this["_"+prop]!=null && this["_"+prop]!="null";
            } catch ( err:Error ) {
                // nothing - handle after the catch
            return false;

Now I extend it in my class extended

private var _property:String = "isGood";

public function test():void {

This traces false because flash says that _property can not be found, if I define the variable in Base, then it traces true. Is “this” scoped to the based class an ignores inheritance? how can I overcome this?

Thank you.

Senocular, want to go 2 for 2? :slight_smile: